TecTao Posted October 30, 2006 Share Posted October 30, 2006 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? Link to comment https://forums.phpfreaks.com/topic/25587-solved-self-submitting-form-loses-field-entries-when-loops-through/ Share on other sites More sharing options...
KevinM1 Posted October 30, 2006 Share Posted October 30, 2006 I think something like:[code]<input name="demo" value="<?php if(isset($_POST['demo'])) echo $_POST['demo']; ?>" >[/code]Will work. Link to comment https://forums.phpfreaks.com/topic/25587-solved-self-submitting-form-loses-field-entries-when-loops-through/#findComment-116772 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.