Jump to content


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


Show Previously Filled in Fields

Recommended Posts

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?


Share this post

Link to post
Share on other sites
Once your form has been submitted, store any filled in fields within the $_SESSION array. Then you can echo these values within your form.

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.