<html>
<head>
	 <meta charset="utf-8">
	 <title>회원가입 폼</title>
 </head>
 <body>
	 <h2>회원가입 폼</h2>
	   <form method="get" action="memberResult.php">
    <table border="1" cellspacing="0">
		   <tr>
            <td> 아이디 : </td>
						<td> <input type="text" name="id" required autofocus> </td>
			 </tr>
			 <tr>
            <td> 비밀번호 : </td>
						<td> <input type="password" name="password" required > </td>
			 </tr>
			 <tr>
            <td> 성 명 : </td>
						<td> <input type="name" name="name" required> </td>
			 </tr>
			 <tr>
            <td> 생년월일 : </td>
						<td> <select name="birth_year" required >
							   <?php
								    for($i=2018;$i>=1910;$i--)
                    print "<option value=$i>{$i}년";
                  ?>
                    </select>
									<select name="birth_month" required >
											   <?php
												    for($i=1;$i<=12;$i++)
				                    print "<option value=$i>{$i}월";
				                  ?>
				                    </select>
														<select name="birth_day" required >
																   <?php
																	    for($i=1;$i<=31;$i++)
									                    print "<option value=$i>{$i}일";
									                  ?>
									                    </select>
						</td>
			 </tr>
			 <tr>
            <td> 성 별 : </td>
						<td> <input type="radio" name="gender" value="남자" checked>남자
						        <input type="radio" name="gender" value="여자" >여자 </td>
			 </tr>
			 <tr>
						 <td> 취 미 : </td>
						<td> <input type="checkbox" name="hobby[]" value="영화보기" >영화보기
										<input type="checkbox" name="hobby[]" value="축구" >축구
										<input type="checkbox" name="hobby[]" value="등산" >등산
									</td>
			 </tr>
			 <tr>
						 <td> 자기소개 : </td>
						<td> <textarea cols="50" rows="5"  name="intro" placeholder="간단한 자기소개를 입력해 주세요" > </textarea>
						</td>
			 </tr>
			 <tr  align="center">
						 <td colspan="2"><input type="submit" value="회원가입"> </td>
			 </tr>
		</table>
	</form>

	</body>
		</html>
