주소호출시 특정값 선택되게
본문
아래처럼 주소에서 Nradio1=농산물품질관리사 호출시
본문 항목이 선택되게 하는 방법좀 고수분들에게 부탁드립니다
http://edukorea24.com/bbs/write.php?bo_table=coun&Nradio1=농산물품질관리사
답변 1
<input type="radio" name="Nradio1" value="농산물품질관리사" <?php if($_GET['Nradio1'] == "농산물품질관리사") { echo "checked"; } ?> />
<input type="radio" name="Nradio1" value="abc농산물품질관리사" <?php if($_GET['Nradio1'] == "abc농산물품질관리사") { echo "checked"; } ?> />
이런식으로 하면 되지 않을까요?
답변을 작성하시기 전에 로그인 해주세요.