Jump to content

PHP and flash forms


eric200678

Recommended Posts

helo im new to this but i have a problem it contains php and actionscript calling my pvp file was wondering if anyone could help?

 

 

<?

$ToEmail = "test@yourname.com";

 

##ToName = "unknown";

$ToSubject = "Test file for emails";

 

$EmailBody = "Sent By: $Name\nSenders Company: $Company\nSenders Email: $Email\n\nSenders Address: $Address\n\nSenders City: $City\n\nSenders State: $State\n\nSenders Zip Code: $Zip\n\nSenders Country: $Country\n\nSenders Title: $Title\n\nSenders Phone: $Phone\n\nSenders Fax: $Fax\n\nSenders Estimated: $Estimated\n";

 

$EmailFooter="\nThis message was sent by: $Name from $REMOTE_ADDR If you fell you got this e-mail by accdent please contact us at www.yourname.com";

 

$Message = $EmailBody.$EmailFooter;

 

mail($ToName. " <".$ToEmail.">",$toSubject, $Message, "From: "$Name." <".$Email.">");

 

Print "_root.Mail.EmailStatus=Complete - your mail has been sent";

 

?>

 

i use this so my flash page can send it to an email i have gotten it to work on smaller forms but now im wondering if im working it wrongor what here is the actoinscript to call it

 

on (release) {

if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {

EmailStatus = "Please enter a valid E-mail address";

}

 

else if (!Company.length) {

EmailStatus = "Please Enter your Company Name before Sending";

}

 

else if (!Name.length) {

EmailStatus = "Please Enter your name before Sending";

}

 

else if (!Estimated.length) {

EmailStatus = "Please enter your current estimated income";

}

 

else if (!Address.length) {

EmailStatus = "Please enter your address";

}

 

else if (!City.length) {

EmailStatus = "Please enter your City";

}

 

else if (!State.length) {

EmailStatus = "Please enter your State";

}

 

else if (!Zip.length) {

EmailStatus = "Please enter your Postal Code";

}

 

else if (!Country.length) {

EmailStatus = "Please enter your Country";

}

 

 

else if (!Title.length) {

EmailStatus = "Please enter your title";

}

 

else if (!Phone.length) {

EmailStatus = "Please enter your business phone number";

}

 

else if (!Fax.length) {

EmailStatus = "Please enter your fax number";

}

 

 

else {

loadVariablesNum ("orderform3.php", "0", "Post");

EmailStatus = "Message Sent Successfully! We will reply shortly.";

}

}

 

 

thanks a bunch

Link to comment
Share on other sites

ok i figured it out it was in the php

 

<?

$ToEmail = "yourname@yourname.com";

 

##$ToName = "unknown";

$ToSubject = "Question/Comment";

 

$EmailBody = "Sent By: $Name\nSenders Email: $Email\nSenders Subject: $Company\n\nSenders Company: $Company\n\nSenders Address: $Address\n\nSenders City: $City\n\nSenders State: $State\n\nSenders Zip Code: $Zip\n\nSenders Country: $Country\n\nSenders Title: $Title\n\nSenders Phone: $Phone\n\nSenders Fax: $Fax\n\nSenders Estimated: $Estimated\n";

 

$EmailFooter="\nThis message was sent by: $FirstName from $REMOTE_ADDR If you feel that you recieved this e-mail by accident please contact us at www.earcaddy.com";

 

$Message = $EmailBody.$EmailFooter;

 

mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FirstName." <".$Email.">");

 

 

Print "_root.Mail.EmailStatus=Complete - Your mail has been sent";

 

?>

 

 

it was in the structure of the $Body part guess i got it wrong lol thanks for the help anyway:D:lol:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...