Re: [PHP] processing html forms and keeping the values

2009-11-25 Thread Kim Madsen
Merlin Morgenstern wrote on 2009-11-24 18:38: This is not so easy. I am doing some checking with php on the values and if one failes php returns via GET to the form with the help of header location: $parameter = "&demo=this"; HEADER("Location:/test.html?error=1".$parameter);

Re: [PHP] processing html forms and keeping the values

2009-11-25 Thread Merlin Morgenstern
Hello Raymond, thank you for your hint. I will go with sessions. Thanx for the note regarding XSS. Kind regards, merlin Raymond Irving wrote: There are a couple of ways that you can do this: 1. Store the post values in the $_SESSION variable then echo them back to the screen. Be careful wi

Re: [PHP] processing html forms and keeping the values

2009-11-25 Thread Raymond Irving
There are a couple of ways that you can do this: 1. Store the post values in the $_SESSION variable then echo them back to the screen. Be careful with this as it can lead to XSS. Strip html, etc 2. Send the post values back to the form as part of the query sting. This solution is limited to the

Re: [PHP] processing html forms and keeping the values

2009-11-24 Thread Paul M Foster
On Tue, Nov 24, 2009 at 06:14:01PM +0100, Merlin Morgenstern wrote: > Hi there, > > I am trying to redirect a user back to a html form if a validation > failes. The form shoult then hold all entered values. So far I did this > over $_GET, but there is a 100 Character limitation. How could I do thi

Re: [PHP] processing html forms and keeping the values

2009-11-24 Thread Merlin Morgenstern
Ashley Sheridan wrote: On Tue, 2009-11-24 at 18:14 +0100, Merlin Morgenstern wrote: Hi there, I am trying to redirect a user back to a html form if a validation failes. The form shoult then hold all entered values. So far I did this over $_GET, but there is a 100 Character limitation. How c

Re: [PHP] processing html forms and keeping the values

2009-11-24 Thread tedd
At 6:14 PM +0100 11/24/09, Merlin Morgenstern wrote: Hi there, I am trying to redirect a user back to a html form if a validation failes. The form shoult then hold all entered values. So far I did this over $_GET, but there is a 100 Character limitation. How could I do this while keeping all

Re: [PHP] processing html forms and keeping the values

2009-11-24 Thread Ashley Sheridan
On Tue, 2009-11-24 at 18:14 +0100, Merlin Morgenstern wrote: > Hi there, > > I am trying to redirect a user back to a html form if a validation > failes. The form shoult then hold all entered values. So far I did this > over $_GET, but there is a 100 Character limitation. How could I do this >