PHP form validation handling with Post/Redirect/Get
So I'm working on my website and I have a few forms. I created myself a little system to send/validate and add to the database if there isn't any errors. In my system I also use session variables to handle all the errors in the form since nothing is saved withe the Post/Redirect/Get technique.

The session variables are used to store the data sent so in case of an error you can repopulate the form and store some info on what is wrong with the form.

Putting together all these steps takes a lot of time, time that could be spent doing other stuff on my website.

Am I hoping that someone has a solution that would be a lot easier to get up and working. Do any of you use session variables and do this or do you have an other solution ?? 

I would really like to here how you do it. 

Ohh and I also use the Jquery validation plugin to validate it before submitting the form, but it is not really useful since my php form handling does everything it does.
PHP form validation handling with Post/Redirect/Get
===

So I'm working on my website and I have a few forms. I created myself a little system to send/validate and add to the database if there isn't any errors. In my system I also use session variables to handle all the errors in the form since nothing is saved withe the Post/Redirect/Get technique.

The session variables are used to store the data sent so in case of an error you can repopulate the form and store some info on what is wrong with the form.

Putting together all these steps takes a lot of time, time that could be spent doing other stuff on my website.

Am I hoping that someone has a solution that would be a lot easier to get up and working. Do any of you use session variables and do this or do you have an other solution ?? 

I would really like to here how you do it. 

Ohh and I also use the Jquery validation plugin to validate it before submitting the form, but it is not really useful since my php form handling does everything it does.