Page 1 of 1

simple validation ???

Posted: Wed Jul 12, 2006 4:34 am
by eshban
Hello,

I need a script which allow the user to type just characters(a-z, A-Z, fullstop, underscore).
i want that script to must run in Mozilla as well as internet Explorer.

Mostly these type of scripts cannot run in Mozilla, so plz help

Eshban

Posted: Wed Jul 12, 2006 4:42 am
by Jenk
Client-side (i.e. Javascript)? (you'll also need to validate server-side as well)

Posted: Wed Jul 12, 2006 5:11 am
by Zythan
Hello,

In Javascript try this

http://www.javascript-coder.com/html-fo ... tion.phtml

HTH

Zythan

Posted: Wed Jul 12, 2006 7:26 am
by mabufo
have a look at 'regular expressions' in php, and the eregi() funtion.

Re: simple validation ???

Posted: Wed Jul 12, 2006 9:06 am
by Oren
eshban wrote:Mostly these type of scripts cannot run in Mozilla
Not if you are using PHP, do you have any problem with the script being written in PHP?

Re: simple validation ???

Posted: Wed Jul 12, 2006 10:17 am
by Roja
eshban wrote:Hello,

I need a script which allow the user to type just characters(a-z, A-Z, fullstop, underscore).
i want that script to must run in Mozilla as well as internet Explorer.

Mostly these type of scripts cannot run in Mozilla, so plz help

Eshban
Javascript validation works just fine in Mozilla, in fact better than it does in IE usually.

You could also as an alternative validate in PHP.

What are you trying to accomplish, PHP validation, or Javascript?