Re: [PHP] form validation and error display

2010-07-05 Thread Shreyas Agasthya
Ash - Thanks for correcting me [should I say us ;) ]. So, if my understandng is right, we should use # instead of the superglobal variable. David - Sorry to have written that. I was not aware of the implications of the grand old way of doing it. :) Regards, Shreyas On Mon, Jul 5, 2010 at 4:24 AM

Re: [PHP] form validation and error display

2010-07-05 Thread David Mehler
Hello Everyone, Thanks for all the suggestions on my sticky form problem. I've changed my action attribute to empty "" as per the article on PHP_SELF. I'm still having an issue getting the form to redisplay. For example, if i don't fill out the name field how would i get the form to redisplay with

Re: [PHP] form validation and error display

2010-07-04 Thread Ashley Sheridan
On Sun, 2010-07-04 at 18:23 -0400, David Mehler wrote: > Hello everyone, > Thanks for your suggestions. > For my variable in the value area of the text input field I enter > > value=" > > Prior to this I assign the variable $name to: > > $name = stripslashes($_POST['name']); > > I hope this is

Re: [PHP] form validation and error display

2010-07-04 Thread David Mehler
Hello everyone, Thanks for your suggestions. For my variable in the value area of the text input field I enter value=" Prior to this I assign the variable $name to: $name = stripslashes($_POST['name']); I hope this is correct. Sticky forms sounds exactly what i'm looking for. I've changed my ac

Re: [PHP] form validation and error display

2010-07-04 Thread Paul M Foster
On Sun, Jul 04, 2010 at 01:57:01PM -0400, David Mehler wrote: > Hello, > I've got a form with several required fields of different types. I > want to have the php script process it only when all the required > fields are present, and to redisplay the form with filled in values on > failure so the

Re: [PHP] form validation and error display

2010-07-04 Thread Shreyas Agasthya
David, If I understand your problem/issue here, you are talking about something called 'sticky forms'. This means - (i) the form references itself. (ii) that the form knows what the previous data was when it encounters any validation issues. You achieve (i) and (ii) by re-submitting the form with

[PHP] form validation and error display

2010-07-04 Thread David Mehler
Hello, I've got a form with several required fields of different types. I want to have the php script process it only when all the required fields are present, and to redisplay the form with filled in values on failure so the user won't have to fill out the whole thing again. One of my required fie