# Sending secure php with flash

**URL:** <https://forum.kirupa.com/t/sending-secure-php-with-flash/191460>\
**Category:** Uncategorized\
**Created:** [June 20, 2006, 6:05pm UTC](https://forum.kirupa.com/t/sending-secure-php-with-flash/191460 "2006-06-20T18:05:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stoochy1](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@stoochy1](https://forum.kirupa.com/u/stoochy1)\
**Post date:** [June 20, 2006, 6:05pm UTC](https://forum.kirupa.com/t/sending-secure-php-with-flash/191460/1 "2006-06-20T18:05:32Z")

</div>

use go daddy as my server. i have a economy plan and windows as the server.

my last attempt was the trail php and when I loaded the url it says message not sent.

in flash when i try the original code it takes me to message sent successfull. but I dont get any emails.

**Code:** \<?php

```auto
$to = "dave@scotlandorbust.com"; 
$subject = "Flash Contact Form Submission"; 
$message = "Name: " . $_POST['theName']; 
$message .= "
Email: " . $_POST['theEmail']; 
$message .= "

Message: " . $_POST['theMessage']; 
$headers = "From: " . $_POST['theEmail']; 
$headers .= "
Reply-To: " . $_POST['theEmail']; 

$sentOk = mail($to,$subject,$message,$headers); 

echo "sentOk=" . $sentOk; 

?> 

```

**Code:**

```auto
stop(); 

var receiveLoad:LoadVars = new LoadVars(); 

receiveLoad.onLoad = function(success) { 
   if(success) { 
      _root.gotoAndStop("success"); 
   } 
   else { 
      _root.gotoAndStop("failed"); 
   } 
} 

sender.onRelease = function() { 
   receiveLoad.theName = theName.text; 
   receiveLoad.theEmail = theEmail.text; 
   receiveLoad.theMessage = theMessage.text; 
   receiveLoad.sendAndLoad("http://scotlandorbust.com/send.php",receiveLoad, "POST"); 
} 

```

here is my fla as well

[[COLOR=#072978]http://www.scotlandorbust.com/fla.htm[/COLOR]](http://www.scotlandorbust.com/fla.htm)

i am so new to this but want to learn. PLEASE HELP. this site has been awesome with my questions. check out my site. tons of help from you guys. thanks a bunch

if i need to go to another smtp i will

my biggest thing is that i just want people to click send and walk away from their cpu.

* * *

[[COLOR=#072978]www.scotlandorbust.com[/COLOR]](http://www.scotlandorbust.com/)

missionaries rock
