Form that remembers the data inputed

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Rovas
Forum Contributor
Posts: 272
Joined: Mon Aug 21, 2006 7:09 am
Location: Romania

Form that remembers the data inputed

Post 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.
Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post by Shendemiar »

Code: Select all

<FORM action='target.php' method='post'>
<TEXT value='<?php echo $variable_holding_validated_field_55; ?>' name='field_55'>
</FORM>
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Rovas
Forum Contributor
Posts: 272
Joined: Mon Aug 21, 2006 7:09 am
Location: Romania

Post by Rovas »

Thanks Shendemiar. It works now
Post Reply