RE: [PHP] HELP! form validation

2005-06-09 Thread Dave Sayer
age- > From: Jim Moseby [mailto:[EMAIL PROTECTED] > Sent: 09 June 2005 15:49 > To: '[EMAIL PROTECTED]'; php-general@lists.php.net > Subject: RE: [PHP] HELP! form validation > > > > > > Eg: > > > > > $error_style = 'color: rgb(255,0,0)';

RE: [PHP] HELP! form validation

2005-06-09 Thread Jim Moseby
> > > > Eg: > > > > $error_style = 'color: rgb(255,0,0)'; > > > > if(!$name){$err1 = $error_style; $error[]="*please enter > > > > your name\n";} > > > > > > Does it re-populate the fields with the previously entered data? > > Yes, it does. I already have set the variables manually like > you

Re: [PHP] HELP! form validation

2005-06-09 Thread Dave Sayer
15:02 > > To: '[EMAIL PROTECTED]'; Jim Moseby > > Cc: php-general@lists.php.net > > Subject: RE: [PHP] HELP! form validation > > > > > > > > Hi Jim, Ive modified the code for the form by adding the > > > style info & vars > > >

RE: [PHP] HELP! form validation

2005-06-09 Thread Jim Moseby
> > Hi Jim, Ive modified the code for the form by adding the > style info & vars > to the relevant fields and set the var for the error style > but for some > reason the $error_var wont pick up the syle from $error_syle_var. > > Eg: > $error_style = 'color: rgb(255,0,0)'; > if(!$name){$err1 =

RE: [PHP] HELP! form validation

2005-06-09 Thread Dave Sayer
; -Original Message- > From: Jim Moseby [mailto:[EMAIL PROTECTED] > Sent: 08 June 2005 15:33 > To: '[EMAIL PROTECTED]' > Subject: RE: [PHP] HELP! form validation > > > I can see that being a very nice way of doing it. I will get > > on and give it > >

RE: [PHP] HELP! form validation

2005-06-08 Thread Dave Sayer
> -Original Message- > From: Jim Moseby [mailto:[EMAIL PROTECTED] > Sent: 08 June 2005 15:18 > To: '[EMAIL PROTECTED]' > Subject: RE: [PHP] HELP! form validation > > > > -Original Message- > > From: Dave Sayer [mailto:[EMAIL PROTECTED]

RE: [PHP] HELP! form validation

2005-06-08 Thread Jim Moseby
> Hi php’ers, > > What would be the best method of validation a large (8 > stages) form written > in php? The form validates using php at the moment but it > only displays the > errors in a group, what we want it to do is highlight the > fields or labels > for the incorrect entries (if that mak

Re: [PHP] HELP! form validation

2005-06-08 Thread Paul Waring
On 6/8/05, Dave Sayer <[EMAIL PROTECTED]> wrote: > What would be the best method of validation a large (8 stages) form written > in php? The form validates using php at the moment but it only displays the > errors in a group, what we want it to do is highlight the fields or labels > for the incorre

[PHP] HELP! form validation

2005-06-08 Thread Dave Sayer
Hi php’ers, What would be the best method of validation a large (8 stages) form written in php? The form validates using php at the moment but it only displays the errors in a group, what we want it to do is highlight the fields or labels for the incorrect entries (if that makes sense.) so the use