|
 |
|
อยากได้ code php การสมัครสมาชิก name user name password ในการล็อกอินอีกที |
|
 |
|
|
 |
 |
|
Code (PHP)
<!-- ใส่ URL ของไฟล์ phpAuth_inc.php ลงไปด้านล่างครับ -->
<form name="form1" method="post" action="http://www.thamwebsite.com/test/login2/phpAuth_inc.php">
<font face="MS Sans Serif">Username :</font> <input name="phpAuth_usr" type="text" id="phpAuth_usr" value="" size="20"><br>
<font face="MS Sans Serif">Password :</font> <input name="phpAuth_pwd" type="password" id="phpAuth_pwd" size="20">
<br>
<font face="MS Sans Serif" size="2">Remember Me</font> <input name="phpAuth_rm" type="checkbox" id="phpAuth_rm" value="1">
<br>
<input name="phpAuth_Submit" type="submit" id="phpAuth_Submit" value="Login">
<br>
<font face="MS Sans Serif" size="2">ยังไม่ได้เป็นสมาชิก ? <a href="phpAuth_adduser.php">สมัครสมาชิกคลิ๊กที่นี่</a></font>
</form>
|
 |
 |
 |
 |
Date :
2010-06-16 19:58:01 |
By :
d |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
<?php
/*** By Weerachai Nukitram***/
/*** http://www.ThaiCreate.Com ***/
?>
<html>
<head>
<title>ThaiCreate.Com Ajax Tutorial</title>
</head>
<script language="JavaScript">
var HttPRequest = false;
function doCallAjax() {
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;
}
var url = 'AjaxPHPRegister2.php';
var pmeters = "tUsername=" + encodeURI( document.getElementById("txtUsername").value) +
"&tPassword=" + encodeURI( document.getElementById("txtPassword").value ) +
"&tName=" + encodeURI( document.getElementById("txtName").value ) +
"&tEmail=" + encodeURI( document.getElementById("txtEmail").value );
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
{
document.getElementById("mySpan").innerHTML = "Now is Loading...";
}
if(HttPRequest.readyState == 4) // Return Request
{
if(HttPRequest.responseText == 'Y')
{
window.location = 'AjaxPHPRegister3.php';
}
else
{
document.getElementById("mySpan").innerHTML = HttPRequest.responseText;
}
}
}
}
</script>
<body>
<h1>Register Form</h1>
<form name="frmMain">
<span id="mySpan"></span>
<table width="274" border="1">
<tr>
<th width="117">
<div align="left">Username</div></th>
<th><input type="text" name="txtUsername" id="txtUsername" size="20"></th>
</tr>
<tr>
<th width="117">
<div align="left">Password</div></th>
<th><input type="password" name="txtPassword" id="txtPassword" size="20"></th>
</tr>
<tr>
<th width="117">
<div align="left">Name</div></th>
<th><input type="text" name="txtName" id="txtName" size="20"></th>
</tr>
<tr>
<th width="117">
<div align="left">Email</div></th>
<th width="236"><input type="text" name="txtEmail" id="txtEmail" size="20"></th>
</tr>
</table>
<br>
<input name="btnRegister" type="button" id="btnRegister" OnClick="JavaScript:doCallAjax();" value="Register">
</form>
</body>
</html>
|
 |
 |
 |
 |
Date :
2010-07-16 22:52:15 |
By :
จ้าาาาาา |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
พอจะมีโค้ดที่ต้องเชื่อมต่อกับบาร์โค้ดไหมคะ แล้วบารโค้ดนี่จะต้องเขียนโค้ดต่างหากไหมคะ
|
 |
 |
 |
 |
Date :
2011-11-11 15:02:17 |
By :
เด็กไอที ยะลา |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
พอจะมีโค้ดที่ต้องเชื่อมต่อกับบาร์โค้ดไหมคะ แล้วบารโค้ดนี่จะต้องเขียนโค้ดต่างหากไหมคะ
|
 |
 |
 |
 |
Date :
2011-11-11 15:03:44 |
By :
เด็กไอที ยะลา |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
บาร์โค๊ดติดต่อกับ pc เป็นเสมือนแค่คีย์บอร์ดอันนึง เราแค่ทำฟอร์มเพื่อมารับค่าเท่านั้นเองครับ
|
 |
 |
 |
 |
Date :
2011-11-11 15:28:05 |
By :
Dragons_first |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|

|
 |
 |
 |
 |
Date :
2011-11-24 10:59:40 |
By :
แอมมี่ |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 05
|