I've go a form on my site which I'm converting to a single page self submitting form with an if argument that if one field is empty ($cName > ' ') it will loop back through to the form.
Unfornately, when it does, all of the fields are blank.
Is there a way to retain the information so the viewer doesn't have to re-type everything back in again?
[SOLVED] Self Submitting Form Loses Field Entries When Loops Through
1 reply to this topic
Posted 30 October 2006 - 03:34 PM
I think something like:
<input name="demo" value="<?php if(isset($_POST['demo'])) echo $_POST['demo']; ?>" >
Using 'global' is a sign of doing it wrong
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users