UFO2015
2016-04-16 22:02
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>form for POST & GET</title> <meta http-equiv="keyword" content="http://www.diffen.com/difference/GET_(HTTP)_vs_POST_(HTTP)"> </head> <body> <h2>POST </h2> <!-- <form action="form1.php" method="POST" target="_blank" > --> <form action="form.php" method="post" target="_blank" > <label for="">username</label> <input type="text" name="username" placeholder="username" /><br/> <label for="">password</label> <input type="password" name="password" placeholder="password" /><br/> <label for=""> </label> <input type="reset" value="reset"> <span> </span> <input type="submit" value="submit"> </form> <hr/> <h2>GET </h2> <form action="form.php" method="GET" target="_blank"> <!-- <form action="xx.xxx" method="get" target="_blank"> --> <label for="">username</label> <input type="text" name="username" placeholder="username" /><br/> <label for="">password</label> <input type="password" name="password" placeholder="password" /><br/> <label for=""> </label> <input type="reset" value="reset"> <span> </span> <input type="submit" value="submit"> </form> <hr/> <!-- error : input without name 属性--> <!-- <h2>POST </h2> <form action="form.php" method="post" target="_blank" > <label for="">username</label> <input type="text" placeholder="username" /><br/> <label for="">password</label> <input type="password" placeholder="password" /><br/> <label for=""> </label> <input type="reset" value="reset"> <span> </span> <input type="submit" value="submit"> </form> <hr/> <h2>GET </h2> <form action="form.php" method="GET" target="_blank"> <label for="">username</label> <input type="text" placeholder="username" /><br/> <label for="">password</label> <input type="password" placeholder="password" /><br/> <label for=""> </label> <input type="reset" value="reset"> <span> </span> <input type="submit" value="submit"> </form> --> </body> </html> <!-- method 不区分大小写! method="get" method="post" 正确! method="POST" method="GET" 正确! --> <!-- post get error! input name 属性 不可以少! -->
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>form for POST & GET</title> <meta name="keyword" content="http://www.diffen.com/difference/GET_(HTTP)_vs_POST_(HTTP)"> <meta name="reference" content="http://www.runoob.com/w3cnote/meta.html"> </head> <body> <h2>POST </h2> <!-- <form action="form1.php" method="POST" target="_blank" > --> <form action="form.php" method="post" target="_blank" > <label for="">username</label> <input type="text" name="username" placeholder="username" /><br/> <label for="">password</label> <input type="password" name="password" placeholder="password" /><br/> <label for=""> </label> <input type="reset" value="reset"> <span> </span> <input type="submit" value="submit"> </form> <hr/> <h2>GET </h2> <form action="form.php" method="GET" target="_blank"> <!-- <form action="xx.xxx" method="get" target="_blank"> --> <label for="">username</label> <input type="text" name="username" placeholder="username" /><br/> <label for="">password</label> <input type="password" name="password" placeholder="password" /><br/> <label for=""> </label> <input type="reset" value="reset"> <span> </span> <input type="submit" value="submit"> </form> <hr/> <!-- error : input without name 属性--> <!-- <h2>POST </h2> <form action="form.php" method="post" target="_blank" > <label for="">username</label> <input type="text" placeholder="username" /><br/> <label for="">password</label> <input type="password" placeholder="password" /><br/> <label for=""> </label> <input type="reset" value="reset"> <span> </span> <input type="submit" value="submit"> </form> <hr/> <h2>GET </h2> <form action="form.php" method="GET" target="_blank"> <label for="">username</label> <input type="text" placeholder="username" /><br/> <label for="">password</label> <input type="password" placeholder="password" /><br/> <label for=""> </label> <input type="reset" value="reset"> <span> </span> <input type="submit" value="submit"> </form> --> </body> </html> <!-- method 不区分大小写! method="get" method="post" 正确! method="POST" method="GET" 正确! --> <!-- post get error! input name 属性 不可以少! -->
初识HTML(5)+CSS(3)-升级版
1225294 学习 · 18230 问题
相似问题