hanlonj Posted September 25, 2006 Share Posted September 25, 2006 I am writing a registration script. If there are any blank fields my script will return to the form with the specific empty fields listed above same form. This is ok and it's what I want.Here is my small problem and I know it's an easy one but can't get the logic of it into my head (I have searched this forum for it also but to no avail). I want the fields that were filled in by the user to be displayed again with the previous entries in them.I realise I have to somehow echo the variables within these fields but not sure how to do it.My form is written in the html part of the page and not generated through php. I hope this is clear?John Link to comment https://forums.phpfreaks.com/topic/21968-show-previously-filled-in-fields/ Share on other sites More sharing options...
trq Posted September 25, 2006 Share Posted September 25, 2006 Once your form has been submitted, store any filled in fields within the $_SESSION array. Then you can echo these values within your form. Link to comment https://forums.phpfreaks.com/topic/21968-show-previously-filled-in-fields/#findComment-98091 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.