Hi,
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.
Thanks for any help.
radio:
<input type="radio" name="name" value="1"<?= ($_POST['name']=='1' ? ' checked': '') ?>>
<input type="radio" name="order_type" value="2"<?= ((!$_POST['name'] || $_POST['name']=='2') ? ' checked': '') ?>>
select:
<select name="name">
<option value="1"<?= ($_POST['name']=='1' ? ' selected': '') ?>> ONE </option>
<option value="2"<?= ($_POST['order_type']=='2' ? ' selected': '') ?>> TWO </option>
checkbox:
<input type="checkbox" name="name" value="1"<?= ($_POST['name']=='1' ? ' checked': '') ?>>
You cannot save file input that easily, you have to keep the file on the server and give the user oportunity to change it.
Marek
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php