<script language="javascript">
    function gosubmit(){
        document.myfrom.submit();
    }

</script>
<form name="myfrom" method="post" action="post.php">
        <input type="text" name="username" />
        <span onclick="gosubmit()">提交</span>
 </form>