源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> </head> <body> <form action="demo_form_method.php" method="get" target="_blank"> First name: <input type="text" name="fname"><br> Last name: <input type="text" name="lname"><br> <input type="submit" value="提交"> </form> <p>点击 提交 按钮,输入的内容将发送到服务器的"demo_form_method.php"进行处理.</p> </body> </html>
运行结果