|Save input from form||Newbie, 040131 03:05|
I'm looking for a php-script that will save form entries in separate variables in a file on the server so that I can print it on another page. Example: I go to the form /input.php and type "Nice" in a text field. I then hit submit and go to the page /show.php. On that page it now says: "Nice".
Any idea where I can find something like this?
Or how to make a script that does this?
|Re: Save input from form||User 4574, 040201 21:38|
use $_GET['someVariable']; OR $_POST[someVariable'];
depending on the method you chose in your form
then in /show.php put something like this:
GET will put the variable in the address bar
for example: www.whatever.com/file.php?someVariable=whatever
i think thats what you wanted
|Re: Save input from form||User 4574, 040201 21:39|
i pretty much gave you the code ... you just gotta add the extra stuff like the submit buttons etc...
|Re: Save input from form||John Doe, 040421 00:37|
This is the message text