Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > PHP > PHP Forum > จากกระทู้ที่ถามเรื่องสมัครสมาชิกครับ ต่อน่ะครับ ตัวอย่าง code html สมัครสมาชิกครับ



 

จากกระทู้ที่ถามเรื่องสมัครสมาชิกครับ ต่อน่ะครับ ตัวอย่าง code html สมัครสมาชิกครับ

 



Topic : 044821

Guest




ตัวอย่าง code html สมัครสมาชิกครับ
ไฟล์ register.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>ระบบจองตั๋วหนังผ่านอินเตอร์เน็ต</title></head>

<body background="main_bg_01.jpg">
<form action="printregister.php" method="post">
<center>
<p class="style5"><b>ระบบจองตั๋วหนังผ่านอินเตอร์เน็ต</b></p>
<p class="style5">&nbsp; </p>
</center>
<bt>
<br />
<bt>
<br>
<br>
<bt>
<div align="center"><center>
</div>
<table width="450" border="0" align="center" cellpadding="0"
cellspacing="1" class="square">
<tr>
<th colspan="2" scope="row"><p class="style5">##สมัครสมาชิกจองตั๋วหนังผ่านอินเตอร์เน็ต ##</p>
<p>\</p></th>
</tr>
<tr>
<th width="92" scope="row"><font color="#333333">username :</font></th>
<td width="349"><input type="text" name="username" id="username"></td>
</tr>
<tr>
<th scope="row"><font color="#333333">password :</font></th>
<td><input type="password" name="password" id="password" /></td>
</tr>
<tr>
<th scope="row"><font color="#000000">confirm :</font></th>
<td><input type="password" name="confirm" id="confirm" /></td>
</tr>
<tr>
<th colspan="2" scope="row">::: ประวัติสมาิชิกจองตั๋วหนังผ่านอินเตอร์เน็ต :::</th>
</tr>
<tr>
<th scope="row"><font color="#000000">first :</font></th>
<td><input type="text" name="first" id="first" /></td>
</tr>
<tr>
<th scope="row"><font color="#000000">last :</font></th>
<td><input type="text" name="last" id="last" /></td>
</tr>
<tr>
<th scope="row"><font color="#000000">gender :</font></th>
<td><input type="text" name="gender" id="gender" /></td>
</tr>
<th scope="row"><font color="#000000">birthday :</font></th>
<td><input type="text" name="birthday" id="birthday" /></td>
</tr>
<tr>
<th scope="row"><span class="style5">address :</span></th>
<td><textarea name="address" cols="45" rows="5" id="address"></textarea></td>
</tr>
<tr>
<th scope="row"><span class="style5">email :</span></th>
<td><input type="text" name="email" id="email" /></td>
</tr>
<tr>
<th scope="row"><span class="style5">phone:</span></th>
<td><input type="text" name="phone" id="phone" /></td>
</tr>
<tr>
<th colspan="2" scope="row">
<input type="submit" name="button" id="button" /></td>
<input type="reset" value="Reset">
</table>
</form>
</body>
</html>
code connect ที่เชื่อมต่อฐานข้อมูลครับ
ไฟล์ printregister.php

<?
$host ="localhost";
$user = "root";
$password = "root";
$dbname ="model_db";
$conn = mysql_connect($host , $user , $password) or die ("เชื่อมต่อเซิร์ฟเวอร์ไม่ได้");
$db = mysql_select_db($dbname , $conn) or die ("เชื่อมต่อฐานข้อมูลไม่ได้");
mysql_query("set name utf-8");

?>

ฐานข้อมูลครับ

"CREATE TABLE member
(username int(6) NOT NULL,
password varchar(6) NOT NULL,
confirm varchar(6) NOT NULL,
first varchar(15) NOT NULL,
last varchar(15) NOT NULL,
gender varchar(10) NOT NULL,
birthday varchar(10) NOT NULL,
address varchar(15) NOT NULL,
email varchar(15) NOT NULL,
phone varchar(15) NOT NULL,
)";

ผมจะให้เข้าฐานข้อมูลอ่ะครับ มันไม่เข้า ช่วยยกตัวอย่าง code ที่เข้าฐานข้อมูลได้ป่าวครับ ขอบคุณครับ



Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2010-07-01 22:29:34 By : film View : 1192 Reply : 2
 

 

No. 1



โพสกระทู้ ( 5,146 )
บทความ ( 26 )

สมาชิกที่ใส่เสื้อไทยครีเอท Hall of Fame 2012

สถานะออฟไลน์


https://www.thaicreate.com/php/php-mysql-add-insert-record.html

ลองๆ อ่านอันนี้ไปประยุกต์ดูนะครับ

https://www.thaicreate.com/php.html อันนี้คือการสอนการใช้งาน php ทั้งหมดในเว็บไซต์นี้เลยครับ






Date : 2010-07-01 22:58:23 By : deawx
 


 

No. 2



โพสกระทู้ ( 145 )
บทความ ( 0 )



สถานะออฟไลน์


Code (PHP)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>ระบบจองตั๋วหนังผ่านอินเตอร์เน็ต</title></head>

<body background="main_bg_01.jpg">
<form action="printregister.php" method="post">
<center>
<p class="style5"><b>ระบบจองตั๋วหนังผ่านอินเตอร์เน็ต</b></p>
<p class="style5">&nbsp; </p>
</center>
<bt>
<br />
<bt>
<br>
<br>
<bt>
<div align="center"><center>
</div>
<table width="450" border="0" align="center" cellpadding="0"
cellspacing="1" class="square">
<tr>
<th colspan="2" scope="row"><p class="style5">##สมัครสมาชิกจองตั๋วหนังผ่านอินเตอร์เน็ต ##</p>
<p>\</p></th>
</tr>
<tr>
<th width="92" scope="row"><font color="#333333">username :</font></th>
<td width="349"><input type="text" name="username" id="username"></td>
</tr>
<tr> 
<th scope="row"><font color="#333333">password :</font></th>
<td><input type="password" name="password" id="password" /></td>
</tr>
<tr>
<th scope="row"><font color="#000000">confirm :</font></th>
<td><input type="password" name="confirm" id="confirm" /></td>
</tr>
<tr>
<th colspan="2" scope="row">::: ประวัติสมาิชิกจองตั๋วหนังผ่านอินเตอร์เน็ต :::</th>
</tr>
<tr>
<th scope="row"><font color="#000000">first :</font></th>
<td><input type="text" name="first" id="first" /></td>
</tr>
<tr>
<th scope="row"><font color="#000000">last :</font></th>
<td><input type="text" name="last" id="last" /></td>
</tr>
<tr>
<th scope="row"><font color="#000000">gender :</font></th>
<td><input type="text" name="gender" id="gender" /></td>
</tr>
<th scope="row"><font color="#000000">birthday :</font></th>
<td><input type="text" name="birthday" id="birthday" /></td>
</tr>
<tr>
<th scope="row"><span class="style5">address :</span></th>
<td><textarea name="address" cols="45" rows="5" id="address"></textarea></td>
</tr>
<tr>
<th scope="row"><span class="style5">email :</span></th>
<td><input type="text" name="email" id="email" /></td>
</tr>
<tr>
<th scope="row"><span class="style5">phone:</span></th>
<td><input type="text" name="phone" id="phone" /></td>
</tr>
<tr>
<th colspan="2" scope="row">
<input type="submit" name="button" id="button" /></td>
<input type="reset" value="Reset">
</table>
</form> 
</body>
</html>
code connect ที่เชื่อมต่อฐานข้อมูลครับ
ไฟล์ printregister.php

<?
$host ="localhost";
$user = "root";
$password = "root";
$dbname ="model_db";
$conn = mysql_connect($host , $user , $password) or die ("เชื่อมต่อเซิร์ฟเวอร์ไม่ได้");
$db = mysql_select_db($dbname , $conn) or die ("เชื่อมต่อฐานข้อมูลไม่ได้");
mysql_query("set name utf-8");

?>


Code
"CREATE TABLE member
(username int(6) NOT NULL,
password varchar(6) NOT NULL,
confirm varchar(6) NOT NULL,
first varchar(15) NOT NULL,
last varchar(15) NOT NULL,
gender varchar(10) NOT NULL,
birthday varchar(10) NOT NULL,
address varchar(15) NOT NULL,
email varchar(15) NOT NULL,
phone varchar(15) NOT NULL,
)";

Date : 2010-07-02 08:45:33 By : keapkung
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : จากกระทู้ที่ถามเรื่องสมัครสมาชิกครับ ต่อน่ะครับ ตัวอย่าง code html สมัครสมาชิกครับ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 01
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่