[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

Flash Form and PHP Processing

Asked by cbeaudry1 in Adobe Flash

I've got a flash movie with a form that works fine with ASP for email processing but need to port it to PHP. I've tried doing this but the form simply won't send the data.

Here's the actionscript in the Flash movie:

on (release) {
      
      if (!rname.length) {
            info = "Please enter your name.";
      }
      
      else if (!raddress.length) {
            info = "Please enter your address.";
      }
      
      else if (!rcity.length) {
            info = "Please enter your city of residence.";
      }
      
      else if (!rstate.length) {
            info = "Please enter your state.";
      }
      
      else if (!rzip.length) {
            info = "Please enter your zip code";
      }
      
      else if (!rphone.length) {
            info = "Please enter your phone number";
      }
      
      else if (!remail.length || remail.indexOf("@") == -1 || remail.indexOf(".") == -1) {
            info = "Please enter a valid e-mail address.";
      }  
      
      else if (!cardnumber.length) {
            info = "Please enter your credit card number.";
      }
      
      else if (!expdate.length) {
            info = "Please enter your card's expiration date.";
      }
      
      else {
            team1.setData("82nd Airborne");
            team2.setData("Special Forces");
            team3.setData("Navy Seals");
            team4.setData("N.V. Army");
            team5.setData("V.C. Guerillas");
            team6.setData("Hunter Teams");
            teamsel = team.getValue();
            trace(camp.getValue());
            if (camp.getValue() == true){
            campsel = "Yes";
            }
            else {
            campsel = "No";
            }
            trace(specops.getValue());
            if (specops.getValue() == true){
            sosel = "Yes";
            }
            else {
            sosel = "No";
            }
            ccv.setData("Visa");
            ccm.setData("Master Card");
            card = CreditCard.getValue();
            loadVariablesNum ("regmail.php", "0", "POST");
        gotoAndPlay(651);
      }
}

And here's the PHP Mailer script:

<?PHP

$doMail = $_REQUEST['emailReply'];

$useremail = $_POST['remail'];
$subject = "Online Registration";

$Recipient = "emailaddress@sbcglobal.net";
$Sender = $remail;

$REMOTE_ADDR = $_SERVER['REMOTE_ADDR'];

$from_address  =
nl2br(htmlspecialchars($_POST['rname'],ENT_QUOTES));
$from_address .= " <";
$from_address .=
nl2br(htmlspecialchars($useremail,ENT_QUOTES));
$from_address .= ">";

$email_message = "";
$email_message .= "The following registration was sent through the XXXXXXXXX.com website. \n\n";
$email_message .= "The following information was provided.\n";
$email_message .= "" . $_POST['rname'] . "\n";
$email_message .= "" . $_POST['raddress'] . "\n";
$email_message .= "" . $_POST['rcity'] . ", " . $_POST['rstate'] . " " . $_POST['rzip'] . "\n";
$email_message .= "Phone: " . $_POST['rphone'] . "\n";
$email_message .= "Email: " . $_POST['remail'] . "\n\n";
$email_message .= "REGISTRATION ORDER\n\n";
$email_message .= "Team Selected: " . $_POST['teamsel'] . "\n";
$email_message .= "Camping: " . $_POST['campsel'] . "\n";
$email_message .= "Special Ops: " . $_POST['sosel'] . "\n";
$email_message .= "Paint Cases: " . $_POST['casetot'] . "\n";
$email_message .= "Short Sleeve Shirts: " . $_POST['sslab'] . "\n";
$email_message .= "Long Sleeve Shirts: " . $_POST['lslab'] . "\n";
$email_message .= "ORDER TOTAL: " . $_POST['total'] . "\n";
$email_message .= "CC Name: " . $_POST['card'] . "\n";
$email_message .= "CC Number: " . $_POST['cardnumber'] . "\n";
$email_message .= "CC Exp Date: " . $_POST['expdate'] . "\n\n";

$tab_content = date("j F Y, g:i a");
$tab_content .= "\t";
$tab_content .= $REMOTE_ADDR;
$tab_content .= "\t";

$headers  = "";
$headers .= "From: $Sender\r\n";
$headers .= "X-Mailer: PHP/" . phpversion();

mail($Recipient, $subject, $email_message, $headers);

?>


Anyone have any idea where I'm going wrong?
[+][-]05/11/05 10:33 PM, ID: 13983869Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/11/05 10:43 PM, ID: 13983888Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/12/05 08:28 PM, ID: 13993111Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/12/05 09:09 PM, ID: 13993243Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/13/05 05:51 PM, ID: 14000780Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/13/05 06:00 PM, ID: 14000800Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/13/05 06:07 PM, ID: 14000823Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/16/05 05:34 AM, ID: 14009568Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/16/05 05:37 AM, ID: 14009583Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/16/05 05:53 AM, ID: 14009702Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/19/05 05:59 AM, ID: 14035764Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Adobe Flash
Sign Up Now!
Solution Provided By: Billystyx
Participating Experts: 2
Solution Grade: A
 
[+][-]05/19/05 07:30 PM, ID: 14042606Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/23/06 09:29 PM, ID: 15773183Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]01/27/06 12:19 PM, ID: 15808410Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81