[PHP] select box
페이지 정보
작성자 관리자 작성일16-08-23 11:24 조회2,353회 댓글0건본문
-------------1.php--------------
<!DOCTYPE html>
<meta charset="utf-8" />
<form method='post' action='1_ok.php'>
<select name='fruits' size='3'>
<option value='apple'>사과</option>
<option value='banana'>바나나</option>
<option value='lemon'>레몬</option>
</select>
<input type='submit' value='조회'/>
</form>
-------------1_ok.php--------------
<?php
echo $_POST['fruits'];
?>
<!DOCTYPE html>
<meta charset="utf-8" />
<form method='post' action='1_ok.php'>
<select name='fruits' size='3'>
<option value='apple'>사과</option>
<option value='banana'>바나나</option>
<option value='lemon'>레몬</option>
</select>
<input type='submit' value='조회'/>
</form>
-------------1_ok.php--------------
<?php
echo $_POST['fruits'];
?>
댓글목록
등록된 댓글이 없습니다.