有捨才有得: [php][javascript]AJAX簡易範例(GET、POST傳送)
var by_post='variable='+variable; //將變數放進字串 http_request.onreadystatechange=show_area; http_request.open('POST','ajax_example.php',true); http_request.setRequestHeader("Content-Type","application/x-www-form-urlencoded;"); //**重要一定要加上 http ......