# Validate code help

**URL:** <https://forum.kirupa.com/t/validate-code-help/44161>\
**Category:** Uncategorized\
**Created:** [March 1, 2004, 3:15am UTC](https://forum.kirupa.com/t/validate-code-help/44161 "2004-03-01T03:15:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spectreman](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@spectreman](https://forum.kirupa.com/u/spectreman)\
**Post date:** [March 1, 2004, 3:15am UTC](https://forum.kirupa.com/t/validate-code-help/44161/1 "2004-03-01T03:15:36Z")

</div>

hello everyone!!

Regarding the following code, (which is applied to a “submit” button),  
what code can i add so the email address will be validated. so a person filling the form has to at least provide an @ in the text box???

on (release) {  
if (Name eq “”) {  
\_root.Status = “Please enter your name”;  
} else if (Email eq “”) {  
\_root.Status = “Please enter valid email Address”;  
} else {  
Submit = “Yes”;  
NumHigh = 10;  
NumLow = 0;  
\_root.GuestBook = "Processing… Loading New… ";  
loadVariablesNum(“form.php”, 0, “POST”);  
\_root.Status = “Your entry has been submitted.”;  
Name = “”;  
Email = “”;  
Website = “”;  
Comments = “”;  
gotoAndPlay(2);  
}  
}

thanks for all the help!!!  
s.t.
