1.使用文字or圖片等做 submit
<script>
function link()
{
document.forms["form1"].submit();
}
</script>
<form id="form1" action="" method="post">
<input type="text" name="a" /> <a href="Javascript:link()">GO!</a>
</form>
<?php
if(isset($_POST['a']))
echo $_POST['a'];
?>
2.使用javascript直接submit
<form action='' method='post' id='form1'>
<input type='hidden' name='a' value='value'/>
</form>
<script>document.forms[\"form1\"].submit();</script>