|
 |
|
อัพเว็บขึ้นโฮสแล้วerror message box ขึ้นมาครับ src="http://analytics.hosting24.com/count.php" mce_src="http://analytics.hosting24.com/count.php |
|
 |
|
|
 |
 |
|
Code มันคงจะมีปัญหาครับ ลองเอามาโพสดูครับ
|
 |
 |
 |
 |
Date :
2012-10-30 09:07:54 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เป็น function นี้ครับ ลองใน localhost ใช้ได้ พออัพขึ้นโฮสแล้ว error ตามรูปครับ
function save_regis(namec,pass1,pass2,byear,bmonth,bday,pass3,nameT,tel,nameP,address) {
Code (PHP)
HttPRequest = false;
if (window.XMLHttpRequest) { // Mozilla, Safari,...
HttPRequest = new XMLHttpRequest();
if (HttPRequest.overrideMimeType) {
HttPRequest.overrideMimeType('text/html');
}
} else if (window.ActiveXObject) { // IE
try {
HttPRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
HttPRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
if (!HttPRequest) {
alert('Cannot create XMLHTTP instance');
return false;
}
//alert(namec);
var url = "member_regis.php";
var pmeters = "namec=" + namec +
"&pass1=" + pass1 +
"&pass2=" + pass2 +
"&byear=" + byear +
"&bmonth=" + bmonth +
"&bday=" + bday +
"&email=" + pass3 +
"&nameT=" + nameT+
"&tel=" + tel +
"&nameP=" + nameP +
"&address=" + address;
//alert("A");
HttPRequest.open('POST',url,true);
HttPRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
HttPRequest.setRequestHeader("Content-length", pmeters.length);
HttPRequest.setRequestHeader("Connection", "close");
HttPRequest.send(pmeters);
HttPRequest.onreadystatechange = function()
{
if(HttPRequest.readyState == 3) // Loading Request
{
}
if(HttPRequest.readyState == 4) // Return Request
{
if (HttPRequest.responseText.trim() == "COM") {
alert("สมัครสมาชิกเรียบร้อย กด OK กลับสู่หน้าหลัก");
location.replace('index.php')
} else {
alert(HttPRequest.responseText);
}
}
}
|
 |
 |
 |
 |
Date :
2012-10-31 01:16:02 |
By :
gottozajung |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
โฮมฟรีส่วนมากจะใส่codeบอกว่าใช้โฮมฟรีอะไร แนะนำให้เสียเงินชื้อโฮมเลยครับ
@tontan
|
 |
 |
 |
 |
Date :
2012-10-31 15:47:11 |
By :
tontan |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|