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回答

好帮手慕星星

2019-02-13

你好,代码实现效果是正确的。当点击按钮提交表单时,php文件没有找到,可以将form标签中的action属性设置为空。

祝学习愉快!

1

0 学习 · 5012 问题

查看课程

相似问题

2-2编程练习

回答 1

2-11编程练习

回答 1

2-2编程练习

回答 1

2-7练习

回答 1