【发布时间】:2014-12-19 09:03:07
【问题描述】:
关于如何通过 URL 将变量发送到其他 PHP 站点,我恳请您提供意见:
<form action="deny.php" method="get">
<div align="left"></div>
<p><span class="style13" style="height: 23px;">
<select name="deny" class="style28" style="width: 320px">
<option value="Select" selected="selected">Select</option>
<option value="Price">Too expensive</option>
<option value="Agency">Other Agency</option>
</select>
</span></p>
<p><span class="style13" style="height: 23px;">
<input type="hidden" name="id" value=<? echo $id; ?> />
</span> </p>
<p>
<? echo '<td><a href="deny.php?submit='.$id.'&deny='.$_GET['deny'].'">Send Feedback</a></td>'; ?>
</p>
</form>
$id 正确,但$deny 为空
我什至尝试使用$deny (instead of $_GET['deny']) and $_POST[deny] - 但$deny 总是空的。 (可以在链接中控制)
感谢您的建议!
BR,
斯蒂芬
【问题讨论】:
-
不能用链接提交(不用js)表单,把改成