# Sending mail with php - why not working?

**URL:** https://forum.kirupa.com/t/sending-mail-with-php-why-not-working/148881
**Category:** flash
**Created:** [May 24, 2005, 10:57am UTC](https://forum.kirupa.com/t/sending-mail-with-php-why-not-working/148881 "2005-05-24T10:57:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bennymartensson](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bennymartensson/32/1317_2.png) [@bennymartensson](https://forum.kirupa.com/u/bennymartensson)
#### Post date: [May 24, 2005, 10:57am UTC](https://forum.kirupa.com/t/sending-mail-with-php-why-not-working/148881/1 "2005-05-24T10:57:57Z")

</div>

Using this code in Flash to send my form data… but it’s not working. Do I miss somethis obvious here? I can upload the php-script too, if needed.

stop();

//------------- send form ---------------  
function sendForm () {  
message.from = emailForm.userName.text;  
message.email = emailForm.userEmail.text;  
message.comments = emailForm.userMessage.text;  
message.sendAndLoad("\_php/feedback.php?ck=");  
gotoAndStop(“correct”);  
}  
//------------- /send form ---------------

//--------------- tabbar ---------------  
emailForm.userName.tabIndex = 1;  
emailForm.userEmail.tabIndex = 2;  
emailForm.userMessage.tabIndex = 3;  
//-------------- /tabbar ---------------

//-------------- buttons -----------------  
emailForm.skickaMC.onRelease = function () {  
if (emailForm.userName.text == “” ||  
emailForm.userEmail.text.indexOf ("@") == -1 ||  
emailForm.userMessage.text == “”) {  
gotoAndStop (“error”);  
} else {  
sendForm ();  
gotoAndStop (“correct”);  
}  
}

emailForm.rensaMC.onRelease = function () {  
emailForm.userName.text = ("");  
emailForm.userEmail.text = ("");  
emailForm.userMessage.text = ("");  
}  
//------------- /buttons -----------------
