Topic: PHP form with radio buttons- please guide
hi hi
I've created a form, and the php code works perfectly, for the name, email and comment field. But I'm not sure how the code should look for the three radio buttons that are on my form.
Please help, i'd appreciate it!!
here is the code with the variables:
/* Data Variables */
$email = $_POST['email'];
$name = $_POST['name'];
$surname = $_POST['surname'];
$productcode = $_POST['productcode'];
$method = $_POST['method'];
$body = <<<EOD
<br><hr><br>
Name: $name <br>
Surname: $surname <br>
Email: $email <br>
Codes: $productcode <br>
Credit: $credit <br>
Transfer: $transfer <br>
CHeque: $cheque <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body,
$headers);

