我的一个表单,提交按钮在div层里面,我要在vote.php中通过post方法获得按钮,即$_POST["sub"],应该如何获取?
<form method="post" id="voteform" name="voteform" action="vote.php">
.......
<div><input type="button" id="sub" name="sub" value="sub"></div>
</form>
php
div
提交
------解决方案--------------------
<form method="post" id="voteform" name="voteform" action="vote.php?id=<?php echo $_GET['id'] ?>&action=<?php echo $_SESSION['identity']?>&account=<?php echo $_SESSION['account']?>" onSubmit="return check_input();">
<input type="image" src="../style/tb03.gif" name="sub">