RE: HELP! form validation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 = $error_style; $error[]="*please enter your name\n";}

$err1 does not pick up $error_style in the actual form and I just get
style="" instead of style="color: rgb(255,0,0)".  Im a tad baffled and im
sure its something simple that im missing.

Any ideas?

Cheers

Dave

> -----Original Message-----
> From: Jim Moseby [mailto:JMoseby@xxxxxxxxxxxxxxxxx]
> Sent: 08 June 2005 15:33
> To: 'dave@xxxxxxxxxxxxxxx'
> Subject: RE:  HELP! form validation
> 
> > I can see that being a very nice way of doing it. I will get
> > on and give it
> > a go this afternoon. Thanks so much for the speedy response!
> >
> 
> It just so happened that I, just last week, wanted to do what you are
> doing.
> Fortunately, being the poor housekeeper that I am, I still had that piece
> of
> trial code on my server.   Good luck with it, and don't judge my sloppy
> code
> too harshly!  :o)
> 
> JM
> 
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.323 / Virus Database: 267.6.5 - Release Date: 07/06/2005
> 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.6 - Release Date: 08/06/2005
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux