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
How do you protect form text field after a submit error?
Moderator: General Moderators
-
JPlush76
- Forum Regular
- Posts: 819
- Joined: Thu Aug 01, 2002 5:42 pm
- Location: Los Angeles, CA
- Contact:
have you tried making the value of the field the post variable?
IE
or if you have access to the php.ini file you can change your cache limiter setting to blank... ''
IE
Code: Select all
<?php
echo '<input type="text" name="test" value="'.$_POST['yourvariable'].'">
?>