# Spam check in Flash Form AS 2

**URL:** <https://forum.kirupa.com/t/spam-check-in-flash-form-as-2/316456>\
**Category:** Uncategorized\
**Created:** [November 22, 2010, 2:45pm UTC](https://forum.kirupa.com/t/spam-check-in-flash-form-as-2/316456 "2010-11-22T14:45:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![worthless](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@worthless](https://forum.kirupa.com/u/worthless)\
**Post date:** [November 22, 2010, 2:45pm UTC](https://forum.kirupa.com/t/spam-check-in-flash-form-as-2/316456/1 "2010-11-22T14:45:33Z")

</div>

I have a simple mail form with One Name Input field, one Email Input Field,  
one Message Input Field. Now I have another Static Text and before this Text  
I write two number "35 " and an Input Field with the caption “Put This Number Before Posting” . If the user do not put this number ( 35) he will be restricted to post , he only allowed to post when he put this particular number ( 35) in this Input field.  
How can I do this?

Below is the code I am using for the other three  
fields. Shall be glad if any one help me.

```auto
sender.onRelease = function() {
    if (theName.text == "") {
        errortxt1.text = "Enter your name ";
    } else if (theEmail.text.indexOf("@") == -1) {
        errortxt1.text = "Enter An Email";
    } else if (theMessage.text == "") {
        errortxt1.text = " Your Message Please ";
    } else {
        errortxt1.text = "";
        senderLoad.theName = theName.text;
        senderLoad.theEmail = theEmail.text;
        senderLoad.theMessage = theMessage.text;
        senderLoad.sendAndLoad("mail.php", receiveLoad);
        gotoAndStop("wait");
    }
};

```
