PHPDO
版主
查看个人网站
查看详细资料
TOP
Don't Cry
论坛元老
铜牌会员
leo
管理员
原帖由 orange666 于 2007-7-24 16:32 发表 2.普通的php程序 2.js确实有点烦琐,个人也常用第二种方法: test.php: if($_POST['sub1'=='提交') include 'sub1.php'; if($_POST[' ...
所罗门
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> </head> <Script language="Javascript"> function a() { document.form1.action="a.php"; document.aaa.submit(); } function b() { document.form1.action="b.php"; document.aaa.submit(); } </script> <body> <form id="form1" name="form1" method="post" action=""> <label> <input type="submit" name="Submit" value="a" onClick="return a()" /> </label> <label> <input type="submit" name="Submit2" value="b" onClick="return b()"/> </label> </form> </body> </html>