---- wirte.php ----
$.ajax({
url : "./ajax.write.php",
type : "post",
data: $(form).serialize(),
success: function(result) {
alert('test');
}
})
---- ajax.write.php ----
<form name="formname" action="test.com/z.php">
<input type="hidden" name="test" value="test">
</form>
<script>
document.formname.submit();
</script>
ajax.write.php 에 있는
폼을 또 서브밋하려고 하는데 스크립트가 안먹는거같네요
어떻게 해야할까요ㅜㅜ
|
답변 2개 / 댓글 2개
채택된 답변
+20 포인트
action=http://test.com/z.php<------- 수정
답변을 작성하려면 로그인이 필요합니다.