RE: [PHP] Saving Form Data
| From: | Jay Blanchard | Date: | Wed, 08 Oct 2003 19:58:26 +0000 |
| Subject: | RE: [PHP] Saving Form Data | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-165511@lists.php.net to get a copy of this message | ||
[snip]
Is there anyway of saving a form with layout and data, without knowing
what the fields are?
I would like to be able to have the use "Upload" there own form. Then
that form can be later viewed and filled out by someone else and be able
to save all the data that was entered.
I can do this easy enough with Text and Textarea type fields, but things
like selects, radios, etc I can't think of a way to save them.
Basically It would be like save a screen capture of the filled out form
for viewing/altering later.
[/snip]
If the form method is POST all of the data is in the $_POST array which
could be saved to a text file, if GET all of the data is in the $_GET
array. You would have to read out of the saved text file to re-populate
the form for editing or viewing later