답변 5개
test.php에서
echo $sql;
으로 쿼리를 나오게 하신후에..
$.ajax({
type:"POST",
url : "test.php",
data:data,
success:function(res){
alert(res);
이렇게 경고창으로 res를 출력하시면 쿼리를 확인하실수 있습니다.
댓글을 작성하려면 로그인이 필요합니다.
단순하게 기본 서브밋 형태로 확인할수 있습니다.
</p>
<p><form method="post" action="test.php">
<input type="hidden" name="data_a" value="data_a" />
<input type="hidden" name="data_b" value="data_b" />
<input type="hidden" name="data_c" value="data_c" />
<input type="submit" />
</form></p>
<p>
댓글을 작성하려면 로그인이 필요합니다.
아작스요청시 발생하는 오류이기때문에 console.log()로 서버응답을 살펴보아야 합니다.
때문에
$.ajax({
type:"POST",
url : "test.php",
data:data,
success:function(res){
console.log(res);
}
로 하고 웹브라우저에서 F12건을 눌러 개발자방식에서 콘솔탭에 가면 서버응답상황을 고찰하실수 있습니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인