# Remember me PHP Form Validation

**URL:** <https://forum.kirupa.com/t/remember-me-php-form-validation/219573>\
**Category:** programming\
**Created:** [March 18, 2007, 2:08am UTC](https://forum.kirupa.com/t/remember-me-php-form-validation/219573 "2007-03-18T02:08:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiefrebelangel](https://avatars.discourse-cdn.com/v4/letter/c/47e85d/32.png) [@chiefrebelangel](https://forum.kirupa.com/u/chiefrebelangel)\
**Post date:** [March 18, 2007, 2:08am UTC](https://forum.kirupa.com/t/remember-me-php-form-validation/219573/1 "2007-03-18T02:08:03Z")

</div>

Hey guys :bounce::bounce::bounce:

Im making a form which has quite many fieds, like 50 fields. The form is using php and i have a database to back it up. I made the necessary errortrapping needed to check for empty fields etc. I can save the values in database everything alright. Up to hear im alright. My problem is the following

When i entered the data and I submit the form an errormesage comes up (on a second page) and i provide a link using $\_SERVER[HTTP\_REFERER]; to go back, but the previous entered data is of course gone. I want it to stay there.

I dont want to make session variables cause its like over 50 fields, i have typed to many variables as it is 😉

I could of course use the PHPSELF but then I cant get my form to go to another page WHEN user managed to put all data correct.

I read about the \*header location \*function but i never get that to work due  
to session already sent all the time GRRRRR.

Is it any person who can help me?:crying: please

I have googled for this without any luck, and searched various forums.
