Jump to content

Issue: Flash radio buttons & Php form


Recommended Posts

I have a flash form which all of the fields are sending correctly

through the php code. The flash radio buttons I added with the

groupname == topic, doesnt send with the rest of the

information that is being sent to the email. My question is how do I get

the flash radio button info to submit with the rest of the form.

 

The code for the send button on my flash file:

 

on (release) {

// send variables in form movieclip (the textfields)

// to email PHP page which will send the mail

form.loadVariables("form.php", "POST");

}

 

===============================================

===============================================

 

 

Form.php:

 

<?php

$to = "[email protected]";

$subject = "Contact Page Information for Today";

 

 

$headers = "From: " . $_POST["name"];

$headers .= "<" . $_POST["email"] . ">rn";

$headers .= "Reply-To: " . $_POST["email"] . "rn";

$headers .= "Return-Path: " . $_POST["email"];

 

$message .= "nn";

$message .= "Subject: " . $_POST["topic"] . "rn";

$message .= "Email: " . $_POST["email"] . "rn";

$message .= "Name: " . $_POST["name"] . "rn";

$message .= "Address: " . $_POST["address"] . "rn";

$message .= "City: " . $_POST["city"] . "rn";

$message .= "State: " . $_POST["state"] . "rn";

$message .= "Zip Code: " . $_POST["zip"] . "rn";

$message .= "Phone: " . $_POST["phone"] . "rnn";

$message .= "Message: " . $_POST["message"] . "rn";

 

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

?>

Link to comment
https://forums.phpfreaks.com/topic/42868-issue-flash-radio-buttons-php-form/
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.