PHP小程序
<br /><?php<br /> if (isset($_POST["sub"]))<br /> {<br /> // dosomething()<br /> }<br /><br />?><br /><br /><html><br /><form id="form1" name="form1" method="post" action=""><br /> <br><input type="text" name="name"><br /> <br><input type="text" name="shool"><br /> <input type="submit" name="sub" value="loginBtn"><br /></form><br /></html><br />