# Problem with php mail form

**URL:** <https://forum.kirupa.com/t/problem-with-php-mail-form/177670>\
**Category:** Uncategorized\
**Created:** [February 3, 2006, 10:55pm UTC](https://forum.kirupa.com/t/problem-with-php-mail-form/177670 "2006-02-03T22:55:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![modelreject](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@modelreject](https://forum.kirupa.com/u/modelreject)\
**Post date:** [February 3, 2006, 10:55pm UTC](https://forum.kirupa.com/t/problem-with-php-mail-form/177670/1 "2006-02-03T22:55:48Z")

</div>

Hey all,  
Heres the code in the first frame of my email form for a flash page. It works a treat but it will send anything and everything written in the input text boxes. Is there a way to only send if certain conditions for “email” are met, like if the @ is supplied etc.

// add the listener to the Key onj  
k = new Object();  
k.onKeyUp = function() {  
if (Sname.text != ‘’ && Semail.text != ‘’) {  
// enable btn  
subscribe\_mc.sendMC.sendButton.enabled = true;  
} else {  
// disable  
subscribe\_mc.sendMC.sendButton.enabled = false;  
}  
};  
Key.addListener(k);  
// set starting status  
// for SEND button  
subscribe\_mc.sendMC.sendButton.enabled = false;  
// stop on current frame  
stop();

Thanks in advance!!!  
CB
