Msg#: 3608586 posted 4:10 pm on Mar 23, 2008 (gmt 0)
I've noticed this issue in my form. When the script checks for empty fields, if it finds any, it exits using die("empty fields found");. But the problem is that afterwards all the values that where inputed by the user are removed and I get a blank form with the error underneath it.
Is there any way for the form to stay filled after the die()?
Msg#: 3608586 posted 1:18 pm on Mar 24, 2008 (gmt 0)
IF you use sessions then in order to assure that the scripts will not be "confused" you will just need to start by adding on the first script an "IF" to check if incoming inputs from the landing page are from POST or SESSION then on the landing page if isset and !empty $_POST['my_stuff']; create your my_stuff session