2 - 7 编程练习
来源:2-7 编程练习
目訫
2019-02-12 20:06:18
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>date pickers</title> <style> label { display: block; margin-bottom: 10px; } </style> </head> <body> <form method="post" action="form_action.php"> <label> <span>Name: </span> <input type="text" name="text"/> </label> <label> <span>Sex: </span> <input type="radio" name="sex" />Man <input type="radio" name="sex" />Woman </label> <label> <span>Date Of Birth: </span> <input type="date" name="date" /> </label> <label> <span>Month Of Birth: </span> <input type="month" name="month" /> </label> <label> <span>Week Of Birth: </span> <input type="week" name="week" /> </label> <input type="submit" name="submit" value="Submit" /> </form> <!-- 在此完成任务 --> </body> </html>
1回答
你好,代码实现效果是正确的。当点击按钮提交表单时,php文件没有找到,可以将form标签中的action属性设置为空。
祝学习愉快!
相似问题