I have a complex form (number text fields to complete, a dropdown to be selected) and I validate using PHP. But all the data who was correctly introduced is lost. I thought putting all the in session variables (for each element of the form) but there is a "small" problem the data which was previously complete appears on top of the form.
Any ideas how could I putt the old data from the session in the form' s fields after receiving a error message.
Form that remembers the data inputed
Moderator: General Moderators
-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
Code: Select all
<FORM action='target.php' method='post'>
<TEXT value='<?php echo $variable_holding_validated_field_55; ?>' name='field_55'>
</FORM>http://pear.php.net/package/HTML_QuickForm may be of interest