# loadVariables("sendmail.php"... (issue)

**URL:** <https://forum.kirupa.com/t/loadvariables-sendmail-php-issue/250630>\
**Category:** flash\
**Created:** [January 31, 2008, 7:59am UTC](https://forum.kirupa.com/t/loadvariables-sendmail-php-issue/250630 "2008-01-31T07:59:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geO\_GY](https://avatars.discourse-cdn.com/v4/letter/g/91b2a8/32.png) [@geO\_GY](https://forum.kirupa.com/u/geO_GY)\
**Post date:** [January 31, 2008, 7:59am UTC](https://forum.kirupa.com/t/loadvariables-sendmail-php-issue/250630/1 "2008-01-31T07:59:49Z")

</div>

Hi all.

Just having a slight issue with an actionscript contact form:

If the mandatory fields are not filled out, and send is selected, the email comes through.

I have not yet put the \*\*"//" \*\*in front of the first “loadVariables…” for testing purposes.

My main issue is that, when the form is totally complete, it says that it sent successfully, however i do not recieve an email…

What have i done wrong? please refer to the script below:  
Cheers 🙂

//----------------------------------------  
// the below applies to the send button

on (release) {  
sender\_iam = \_root.Siam.text  
sender\_name = \_root.Sname.text

loadVariables(“sendmail.php”,this,“POST”);

function validate(){  
if(\_root.Siam.text == “”) {  
\_root.Siam\_validation.\_alpha = 100;

} else if(\_root.Sname.text == “”) {  
\_root.Sname\_validation.\_alpha = 100;

} else {  
loadVariables(“sendmail.php”,this,“POST”);

\_root.gotoAndStop(3);

}  
}  
validate();  
}
