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)';
> > > > 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
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
> > >
>
> 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 =
; -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
> >
> -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]
> 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
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
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
9 matches
Mail list logo