Jump to content

URGENT!! HELP NEEDED!!


absolutg

Recommended Posts

Having a major problem.  I am using a general contact form in my Flash 8 Document (note the code below)

*************************************************************************

stop();

 

var senderLoad:LoadVars = new LoadVars();

var receiveLoad:LoadVars = new LoadVars();

 

sender.onRelease = function() {

  senderLoad.theName = theName.text;

  senderLoad.theEmail = theEmail.text;

  senderLoad.theComments = theComments.text;

  senderLoad.sendAndLoad("http://website.com/Comments For the Kids.php", receiveLoad);

}

 

receiveLoad.onLoad = function() {

  if (this.sentOk) {

      _root.gotoAndStop("success");

  }

  else {

      _root.gotoAndStop("failed");

  }

}

*************************************************************************

and this PHP Code

 

*************************************************************************

<?PHP

 

$to = "[email protected]";

$subject = "Comments For the Kids";

$message = "Name: " . $theName;

$message .= "\nEmail: " . $theEmail;

$message .= "\n\nComments: " . $theComments;

$headers = "From: $theEmail";

$headers .= "\nReply-To: $theEmail";

 

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

 

echo "sentOk=" . $sentOk;

 

?>

*************************************************************************

 

but I'm not getting any content.  All I am recieving is the message headers

 

Name:

Email:

Comments:

 

Can someone please help me with this proplem??

 

Signed,

CONFUSED

Link to comment
https://forums.phpfreaks.com/topic/154054-urgent-help-needed/
Share on other sites

If this is so urgent, I suggest you hire someone to do it.

 

If it's not as urgent as you're making it out to be, check to make sure your vars hold the values you expect (echoing them out, looking in the AS debugger). I notice the file you are sending this stuff to has a bunch of spaces.  Perhaps you meant to include underscores or hyphens in that page name?  AS sends by either GET or POST method.  So unless you have register globals turned on, the vars would be accessed in php by $_GET['varnamehere'] or $_POST['varnamehere'].

Link to comment
https://forums.phpfreaks.com/topic/154054-urgent-help-needed/#findComment-809820
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.