Scally_Ally

msg:3608608 | 4:37 pm on Mar 23, 2008 (gmt 0) |
Do you mean when you press back on your browser? does it not remember variables when you refresh the page? What it should do is re-submit the form when you press refresh. Is this not what happens?
|
CodilX

msg:3608625 | 5:01 pm on Mar 23, 2008 (gmt 0) |
It shows the die() bellow the form, and after the die() all the values are deleted. I could post a link for more clarification, but as I understand that's against the rules? <? .. echo '<form>..'; if(isset($_GET['submit'])) { .. if (empty..) { die("Empty fields found"); } }
|
badone

msg:3609021 | 9:27 am on Mar 24, 2008 (gmt 0) |
Once you use die() your script will lose all it's data unless you use a method of persistence such as serialize()/unserialize(), sessions, or a persistent cache like APC. Cheers, badone
|
CodilX

msg:3609069 | 11:33 am on Mar 24, 2008 (gmt 0) |
I'm using sessions
|
henry0

msg:3609105 | 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
|
|