3 ms·
If you don’t want to install any frameworks, just use PHP in the way it was originally meant to be used. When someone POST a form, you can use the $_POST super
by Jorge1o1 8y ago
If you don’t want to install any frameworks, just use PHP in the way it was originally meant to be used.
When someone POST a form, you can use the $_POST superglobal to extract all of that information from the submitted form.
Then, you can store that information in the $_SESSION superglobal.
Lastly, when the user visits a page with the same or similar form entries, you can actually “echo” their own answers from a previous page into the form.
This is baby’s first PHP here, not really production grade, but still quite useful.
- brightball 8y agoI'd 2nd this. Just go get some cheap PHP hosting with Hostgator or something similar. At this point, you don't need a best practice recommendation, you need the learning experience and working with PHP by itself will give you that without a lot of headache.
- pluc 8y ago<?php print_r($_POST); ?> go from there
- brightball 8y ago<pre><?php print_r($_POST); ?></pre>
- ahje 8y ago<?php header('Content-type: text/plain'); var_dump($_POST);