Jump to content

Archived

This topic is now archived and is closed to further replies.

TecTao

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

Recommended Posts

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?

Share this post


Link to post
Share on other sites
I think something like:
[code]
<input name="demo" value="<?php if(isset($_POST['demo'])) echo $_POST['demo']; ?>" >
[/code]

Will work.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.