Hi...guys! I have a form which consists of drop down menu and radio button..I would like to output the selected value in next page by using $_POST.How can capture them?It is urgent for me,thanks for generious help
-
<select name="rNumber" title="number of ticket">
-
<option selected>Select</option>
-
<option>01</option>
-
<option>02</option>
-
<option>03</option>
-
<option>04</option>
-
<option>05</option>
-
<option>06</option>
-
</select>
-
[PHP]
<?
if (isset($_SESSION['gmemberid'])) {
$tbl_name = "movie";
$result = mysql_query(sprintf('SELECT name,classification,screeningTime FROM %s
LIMIT 7', $tbl_name)) or die('Cannot execute query.');
//$numrow = mysql_num_rows($result);
while ($rows = mysql_fetch_assoc($result)) {
echo '<table width="100%" border="0"><tr><td height="68">
<table width="100%" height="47" border="0">
-----------------------------------------<br>';
echo '<strong>' . $rows['name'] . ' (' . $rows['classification'] . ')
<br></strong>';
foreach (explode(',', $rows['screeningTime']) as $time) { ?>
<label>
<input type="radio" name="time[<?php echo $rows['name']; ?>]"
title ="screening time" value="<?php echo $time; ?>">
<?php echo $time; ?>
</label>
<?php } ?>
<?
}
}
?>
[/PHP]