limit 을 input text 값으로 조정하고 싶은데요~
limit 을 input text 값으로 조정하고 싶은데요~
<input type="text" name="arr_limit" value="5" size="5">개
<?
$sql_6 = " select * .... od_time2 asc limit $arr_limit ";
$sql_6 = " select * .... od_time2 asc limit $arr_limit ";
인풋값을 쿼리에 넣고 싶은데요 어떻게하면 인풋값을 php 함수에 넣을수 있을가요?? 새로고침하지 않는이상 get 으로 보내여만 되지 않을까요??
고수님들 아시는분~`
답변 2개
12년 전
역시 셀렉트박스뿐이없죠 감사드립니다^^
불량학생™
12년 전
보통은
대충 이런 식으로 쓰지 않나요?
Copy
<select name="arr_limit" onchange="change()"><option value="">선택</option><option value="5">5</option><option value="10">10</option><option value="15">15</option></select><script type="text/javascript">function change(){ var thisLimit = $("select[name='arr_limit'] option:selected").val(); document.location.replace("<?=$_SERVER['PHP_SELF']?>");}</script>
대충 이런 식으로 쓰지 않나요?
답변을 작성하려면 로그인이 필요합니다.