# How to detect

**URL:** <https://forum.kirupa.com/t/how-to-detect/2759>\
**Category:** Uncategorized\
**Created:** [April 18, 2002, 7:50am UTC](https://forum.kirupa.com/t/how-to-detect/2759 "2002-04-18T07:50:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2002, 7:50am UTC](https://forum.kirupa.com/t/how-to-detect/2759/1 "2002-04-18T07:50:33Z")

</div>

HI everyone,\rI 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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2002, 8:33am UTC](https://forum.kirupa.com/t/how-to-detect/2759/2 "2002-04-18T08:33:45Z")

</div>

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.\r\rThe form, where is it sending the data to? a mysql db, or a txt file, or what?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2002, 2:25pm UTC](https://forum.kirupa.com/t/how-to-detect/2759/3 "2002-04-18T14:25:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 18, 2002, 9:03pm UTC](https://forum.kirupa.com/t/how-to-detect/2759/4 "2002-04-18T21:03:26Z")

</div>

isNaN(n);\r\rreturns true if n is not a number, false if it is.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 19, 2002, 8:07am UTC](https://forum.kirupa.com/t/how-to-detect/2759/5 "2002-04-19T08:07:21Z")

</div>

Thanks for repling hope it works.
