Jump to content


[SOLVED] Self Submitting Form Loses Field Entries When Loops Through

  • Please log in to reply
1 reply to this topic

#1 TecTao

  • Members
  • PipPipPip
  • Advanced Member
  • 144 posts

Posted 30 October 2006 - 03:31 PM

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?
Michael Conway
<a href="http://www.tectaodes...gns.com">TecTao Designs<br>Website Design and Internet Marketing Strategies</a>

#2 KevinM1

  • Moderators
  • Snarkimus Prime
  • 5,248 posts

Posted 30 October 2006 - 03:34 PM

I think something like:
<input name="demo" value="<?php if(isset($_POST['demo'])) echo $_POST['demo']; ?>" >

Will work.
Using 'global' is a sign of doing it wrong

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users