조회 : 140
제가 하려는것은 tt.php에 있는 검색을 누르면 팝업창(pop.php)이 뜨고 팝업창에는
소스를 보시면 아시겠지만 두 달력값을 input 박스로 값을 전달받아 예를 들어 2007-05-01 ~ 2007-05-28일 사이의 값을 조회버튼을 누르면
팝업창에서 조회결과가 나오게 하는것입니다... 달력에서 값을 받는데까지는 성공을 했는데 조회버튼을 누르면 실행이 되지 않습니다..어찌해야할까요??
tt.php // tt.php 파일입니다..
<html>
<table>
<tr>
<script>
function popup_win()
{
window.open("pop.php","","left=400, top=200, scrollbars=yes, resizable=yes
,width=800,height=500");
}
</script>
<td>
<button onclick="popup_win()">검색</button>
</td>
</tr>
</table>
</html>
pop.php //pop.php파일입니다.
달력소스 생략
.
.
<form method="get" action="./pop.php" name="cnjform">
<input type="text" name="cnj_date" size="10" maxlength="10" class="cnj_input">
<input type="button" onclick="popUpCalendar(this, cnj_date, 'yyyy-mm-dd',0)"
value="..." class="cnj_input"> ~
<input type="text" name="cnj_date1" size="10" maxlength="10" class="cnj_input">
<input type="button" onclick="popUpCalendar(this, cnj_date1, 'yyyy-mm-dd',0)"
value="..." class="cnj_input"><br>
<input type="submit" value="조회">
</form>
<?
$connect=mysql_connect(........)
mysql.....
mysql.......생략...
$query="select * from hyu where input_date between 'cnj_date' and 'cnj_date1'";
//hyu라는 테이블에 input_date 라는 필드가 있습니다..형식은 데이트형식입니다...
$result=mysql......
$row=mysql_fetch_array($result)
?>
도와주세요..이쁘신 공대여자님 ^^
제목 |
---|
태그 적용 |
여보세요? 손님도 적으실 수 있습니다. 11 |
일 |
월 |
화 |
수 |
목 |
금 |
토 |
---|---|---|---|---|---|---|
6.1
|
6.2
|
6.3
|
6.4
|
6.5
|
6.6
|
6.7
|
6.8
|
6.9
|
6.10
|
6.11
|
6.12
|
6.13
|
6.14
|
6.15
|
6.16
|
6.17
|
6.18
|
6.19
|
6.20
|
6.21
|
6.22
|
6.23
|
6.24
|
6.25
|
6.26
|
6.27
|
6.28
|
6.29
|
6.30
|
7.1
|
7.2
|
7.3
|
7.4
|
7.5
|