채택완료

select 질문

write.php에서 설정한건 이거구요

<select   name="wr_content" id="wr_content"  style="height:30px;width:100px;">

 <option value="<?php echo $content ?>" <? if($content == test) echo " selected "; ?>>test</option>

</select>

list.php에서 선택을하게되면 변경이 되야 하는데 아무것도 변경되질 않네요

<input type="radio" name='wr_content' value="<?php echo $content ?>" <?php if($wr_content =="test")echo"checked";?>> 

|

답변 1개

채택된 답변
+20 포인트

write.php 와 list.php에서 각각 어떤기능을 활용하시는지에대해 

질문 자체가 모호해서

답변드리기가 애매합니다.

말 그대로 

select tag에 

selected 를 표기하는것과

input type=radio tag 에 checked를 표기하는것에는 문제가 없어보입니다만

가급적 { } 로 막아주시는게 안전합니다.

답변을 작성하려면 로그인이 필요합니다.