Passing two values through a radio button
// split into comma separate array
$option = explode(",", $_POST['option']);
// get value at first index
$option_value = $option[0];
// get value at second index
$option_type = $option[1];
?>
if(isset($_POST['submit'])){
if(!empty($_POST['option'])) {
echo ' ' . $_POST['option'];
} else {
echo 'Please select a session.';
}
}
?>