<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>

<?php echo '日付選択型';?>

<html>
<head>
<title>登録フォームテスト</title>
<!-- <script src="http://code.jquery.com/jquery-2.0.0.js"></script> -->
</head>
<body>
<form name='test' method='post' id='entry' action ='http://localhost/code3/index.php/entry_y/entry/'>
<table border>
<tbody>
	<tr>
	<td><p>番号</p></td>
	<td><input type='integer' name='number' required/></td>
	</tr>
	
	<tr>
	<td><p>名前</p></td>	
	<td><input type='text' name='name' required/></td>
	</tr>

	<tr>
	<td><p>パスワード</p></td>
	<td><input type='password' name='pass' required/></td>
	</tr>

	<tr>
	<td><p>登録日</p></td>
	<td>
		<select type='time' name='year' 　required/>
	 	<option>----</option>
		<option>2010</option>
		<option>2011</option>
		<option>2012</option>
		<option>2013</option>
		<option>2014</option>
		<option>2015</option>
		<option>2016</option>
		<option>2017</option>
		<option>2018</option>
		<option>2019</option>
		<option>2020</option>
	</td>
	</tr>
</tbody>
</table>
	<!-- <a href='http://localhost/code3/index.php/entry_y/get/'><input type="submit" value="送信" form='entry'></a> -->
	<input type="submit" value="送信" form='entry'>
	<input type="reset" value="クリア">
	<script>
// $("a").click(function get(){
// });
</script>
	<?php
	// if('post') {
	// 	 header('location:http://localhost/code3/index.php/entry_y/entry');
	// 	}
	// else{}
	?>
</form>
</body>
</html>
