我有这个代码
<form method="post" action="">
<select name="gender">
<option value="">Select a person:</option>
<option value="Male" id="boy">Male</option>
<option value="Female" id="girl">Female</option>
</select>
<input type="submit" name="subgen" value="Find">
</form>
我想尝试使用此 php 代码通过 url 发送两个值
<?php
if (isset($_POST['subgen'])) {
$gender =$_POST['gender'];
//i want to get the id to go along too
?><meta http-equiv="refresh" content="0;url=genderreport.php?gender=<?php echo ($gender) && genderid=<?php echo ($genderid); ?>"/><?php
}
?>
我想在另一个页面中完成它:
if(isset(($_GET['gender'])&&($_GET['genderid'])){
$gender= $_GET['gender'];
$genderid= $_GET['genderid'];
}
猛跑小猪
慕桂英3389331