Page 1 of 1

How do you protect form text field after a submit error?

Posted: Mon May 05, 2003 12:01 am
by 3dron
I have a form that adds form data to a mySQL database. One of the fields in a large text field that sometimes has 5-15 sentences entered.

Some of my inputers are on 56k lines that fail a lot. If connections fails at submit time, when they hit back all the data is gone. They are losing lots of input time retyping the field.

What is the best way to protect this data from "vanishing"?

RR

Posted: Mon May 05, 2003 11:03 am
by JPlush76
have you tried making the value of the field the post variable?

IE

Code: Select all

<?php

echo '<input type="text" name="test" value="'.$_POST['yourvariable'].'">

?>
or if you have access to the php.ini file you can change your cache limiter setting to blank... ''