Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with flash form to php 1

Status
Not open for further replies.

infernoapbts

Programmer
Dec 13, 2002
20
US
I am trying to send mail from myflash form to php mail. this is the code on the submit button
on (release) {
if (realname = "") {
gotoAndStop(40);
} else if (email = "") {
gotoAndStop(40);
} else if (comments = "") {
gotoAndStop(40);
} else {
getURL(" "", "POST");
gotoAndStop(39);
}
}
& this is the script on the php page:
<?php



$recipient = &quot;designersedge@infernoapbts.com&quot;;
$subject = &quot; Mail From designers edge&quot;;

$mailheaders = &quot;From: <$email> \n&quot;;
$mailheaders .= &quot;Reply-To: <$email>\n\n&quot;;

$msg = &quot;Sender's Name: $realname\n&quot;;
$msg .= &quot;Sender's E-Mail: $email\n&quot;;
$msg .= &quot;Sender's phone #: $phone\n&quot;;
$msg .= &quot;Sender's address 1: $address_line1\n&quot;;
$msg .= &quot;Sender's address 2: $address_line2\n&quot;;
$msg .= &quot;Message: $comments\n\n&quot;;

mail($recipient, $subject, $msg, $mailheaders) or die (&quot;Couldn't send mail!&quot;);

?>


all i am receiving is the headers ie: sender's name: ,ect...
but not the typed info ie: sender's name: jon doe

any help would be appreciated.
thanks
infernoapbts
 
Your if statements should have two '=' signs like:
Code:
if (realname == &quot;&quot;)

Where are the fields that are being filled in? You might have to reference them like
Code:
_root.form.realname
depending on where they are. frozenpeas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top