Jump to content


Show Previously Filled in Fields

  • Please log in to reply
1 reply to this topic

#1 hanlonj

  • Members
  • PipPipPip
  • Advanced Member
  • 38 posts

Posted 25 September 2006 - 11:50 AM

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?


#2 trq

  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 25 September 2006 - 11:54 AM

Once your form has been submitted, store any filled in fields within the $_SESSION array. Then you can echo these values within your form.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users