日期:2014-05-17  浏览次数:20454 次

我的提交按钮在div里,关于提交的问题
本帖最后由 vic90 于 2013-06-15 23:21:04 编辑
我的一个表单,提交按钮在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">