PDA

View Full Version : how to detect



misssonia
April 18th, 2002, 03:50 AM
HI everyone,
I have made a form and wann to check valid data i.e if alpanumeric value is req. user cannot enter numeric value and vice versa. I found no inbuilt fn. in flash which could detect whther the entered value is string or numeric.Now how should i check this ..pls. help

upuaut8
April 18th, 2002, 04:33 AM
I've seen some php scripts that will do that... and no doubt they can be rewriten in a/s. I have heard that a/s is not really good at checking things like this though.

The form, where is it sending the data to? a mysql db, or a txt file, or what?

Soniajoshi
April 18th, 2002, 10:25 AM
Thankx for replying, the form is sending data to a php script but the thing is i wanted to check it here itself in flash otherwise the server side transaction for such small validations may take unwanted timegap. Pls. could u tell me the php scripts which do the same?

suprabeener
April 18th, 2002, 05:03 PM
isNaN(n);

returns true if n is not a number, false if it is.

Soniajoshi
April 19th, 2002, 04:07 AM
Thanks for repling hope it works.