<script>
function ceshi()
{
document.form1.action = "http://*****/App/app2/callback.php";
document.getElementById("type").value= "ceshi";//设置输入框name值
}
function tijiao()
{
document.form1.action = "http://*****/App/app2/callback.php";
document.getElementById("type").value= "tijiao";//设置输入框name值
}
</script>
<div class="gz">
<input type="hidden" value="" name="type" id="type">
<input type="checkbox" name="friend" value="0" id="gz" /><label for="gz">关注我的微博</label>
</div>
<div class="wb">
<input type="image" value="发布" name="pub" src="images/sinabt.gif" οnclick="tijiao()">
</div>
另一个方法
<input type="submit" name="Submit1" value="删除选中的项目" style="background:#dddddd">
<input type="submit" name="Submit2" value="通过选中的项目" style="background:#009900">
<input type="submit" name="Submit3" value="修复选中的项目" style="background:#FF9900">
只需要在action断 判断
if ( ! empty( $_POST['Submit1'] ) ) {}
即可。