ajax 페이지안에서 form을 전송해야하는데..
프론트단
$.ajax ({
url : "./test_proc.php",
type : "post",
data : $(form).serialize(),
success : function (result) {
alert('test');
}
})
--test_proc.php
$test = $_POST['test'];
<form name="testform" method="post" action="test.asp">
<input type="hidden" name="test" value="<?php echo $test?>">
</form>
<script>
document.testform.submit();
</script>
-------------------------
여기서 또보내야하는데 이런식으로 하는게아닌가요?
폼전송이 안되네요..
답변 1개
크롬 요소검사 네트워크에서 보시면
name 부분에 test_proc.php를 클릭하시면
오류나 이런게 보입니다.
답변을 작성하려면 로그인이 필요합니다.