源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> </head> <body> <form action="action_page.php"> 名字:<br> <input type="text" name="firstname" value="Mickey"> <br> 姓氏:<br> <input type="text" name="lastname" value="Mouse"> <br><br> <input type="submit" value="Submit"> </form> <p>如果点击"Submit" 按钮, 表单数据将发送给"action_page.php执行".</p> </body> </html>
运行结果