내가 원하는 것은 제출을 클릭 할 때 모든 양식 데이터를 process.php에 게시하고 싶습니다. process.php에 POST 데이터를 출력하고 싶습니다 ... 그럼 대체하십시오. process.php에서 수행 한 것과 결과 DIV의 모든 ...jQuery POST 양식 데이터
<script type="text/javascript">
$(document).ready(function(){
$("#myform").submit(function() {
$.ajax({
type: "POST",
dataType: "html",
cache: false,
url: "process.php",
success: function(data){
$("#results").html(data);
}
});
return false;
});
//$("#myform").submit(function() {
//$('#results').html("yay");
//}
// });
//});
});
</script>
<form name="myform" id="myform" action="" method="POST">
<!-- The Name form field -->
<label for="name" id="name_label">zoom</label>
<input type="text" name="zoom" id="zoom" size="30" value=""/>
<br>
</select>
<!-- The Submit button -->
<input type="submit" name="submit" value="Submit">
</form>
<!-- FORM END ---------------------------------------- -->
<!-- RESULTS START ---------------------------------------- -->
<div id="results">nooooooo<?PHP $_SESSION[''] ?><div>
<!-- <input type="image" name="mapcoords" border="0" src="mapgen.php"> ---- -->
<!-- RESULTS END ---------------------------------------- -->
그래서, 문제는 무엇인가? – Nacho
코드가 그렇게하는 것 같습니다 (감기 검사). 문제가 무엇입니까? – Halcyon
그리고 무엇이 문제입니까? –