Page 1 of 1

Form that remembers the data inputed

Posted: Tue Aug 22, 2006 7:56 am
by Rovas
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.

Posted: Tue Aug 22, 2006 8:07 am
by Shendemiar

Code: Select all

<FORM action='target.php' method='post'>
<TEXT value='<?php echo $variable_holding_validated_field_55; ?>' name='field_55'>
</FORM>

Posted: Tue Aug 22, 2006 8:19 am
by volka

Posted: Tue Aug 22, 2006 9:15 am
by Rovas
Thanks Shendemiar. It works now