For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > June 2004 > Javascript help require









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Javascript help require
Rinku

2004-06-26, 3:55 pm

I need Javascript help for this....

1)I want to validate a variable called "name"
If variable's value is not set then system should say
"Value require".
If its not alphabatic then system should say
"Alphabatic value require". And curser's focus should
come on textbox named "name".
2)I want to validate a variable called "Phone_no"
If variable's value is not set then system should say
"Value require".
If its not numeric then system should say "Numeric
value require". And curser's focus should come on
textbox named "Phone_no".

Pls answer if you can. I have tried but not 100%
succeed.

Regards
Rinku



__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo
Manuel Lemos

2004-06-27, 3:55 am

Hello,

On 06/26/2004 11:04 AM, Rinku wrote:
> I need Javascript help for this....
>
> 1)I want to validate a variable called "name"
> If variable's value is not set then system should say
> "Value require".
> If its not alphabatic then system should say
> "Alphabatic value require". And curser's focus should
> come on textbox named "name".
> 2)I want to validate a variable called "Phone_no"
> If variable's value is not set then system should say
> "Value require".
> If its not numeric then system should say "Numeric
> value require". And curser's focus should come on
> textbox named "Phone_no".


You may want to try this forms generation and validation class that can
do exactly what you ask.

http://www.phpclasses.org/formsgeneration


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com