我有這個表單(它是一個網絡民意調查),有收音機答案,我需要它時從動作文件(voting.php)提交的信息打印在同一頁上,無需刷新!請幫助我我一直努力工作了幾個小時,因爲我剛接觸Ajax jQuery和Java以及所有棘手的動態內容。用php處理表格不刷新
<form name="myform" id="myform" action="voting.php" method="post">
<input id="radio1" type="radio" name="answer" value="answer1"><?php echo $answer1?><br>
<input id="radio2" type="radio" name="answer" value="answer2"><?php echo $answer2?><br>
<input id="radio3" type="radio" name="answer" value="answer3"><?php echo $answer3?><br>
<input id="radio4" type="radio" name="answer" value="answer4"><?php echo $answer4?><br>
<input id="radio5" type="radio" name="answer" value="answer5"><?php echo $answer5?><br>
<input id="questionId" type="hidden" name="questionId" value="<?php echo $questionId?>">
<center><input id="button" type="submit" value="Vote"></center>
</form>
哪裏是你已經厭倦了jqury Ajax代碼? – 2013-05-12 22:58:33
http://www.w3schools.com/ajax/如果你是新人,這是一個非常好的開始,你不會regrat,你可以/應該補充它與一個驚人的網站稱爲stackoverflow;)cumpz – konnection 2013-05-13 00:30:07
另一個地方學習jquery是Jeffery Ways 30天來學習Jquery視頻。 https://tutsplus.com/course/30-days-to-learn-jquery/ – Brad 2013-05-13 01:00:35