View Single Post
Old 11-26-2012, 12:24 PM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,045
Thanks: 8
Thanked 1,029 Times in 1,020 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
With radio buttons they cannot select ALL of them if the "name" is the same.
They can do that with checkboxes, but not radio buttons.

See this test script.
You have already given each radio button a value in your form.
Now you just need to see which one they picked ...

PHP Code:

<?php

$option
="none";
if(
$_POST['delivery'])){
$option=$_POST['delivery'];
)

echo 
"The radio button they selected was: ".$option;

?>

EDIT: fixed typo



.

Last edited by mlseim; 11-26-2012 at 05:04 PM..
mlseim is offline   Reply With Quote
Users who have thanked mlseim for this post:
countrydj (11-26-2012)