同一个表单,以不同的请求方式提交,使用formmethod属性

来源:互联网 发布:怎么查看端口号被占用 编辑:程序博客网 时间:2024/06/05 23:06
<!DOCTYPE html><html><head lang="en"><meta charset="UTF-8"><title>form</title></head><body> <form id="tt"></form><input type="text" form="tt" name="p"><textarea rows="" cols="" form="tt" name="p2"></textarea><input type="submit" form="tt" formaction="test.php" formmethod="get"><input type="submit" form="tt" formaction="test2.php" formmethod="post"></body></html>

0 0
原创粉丝点击