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 อันนี้ให้หน่อยสิครับ ผมลองทำดูแล้วแต่มันแสดงผลแปลกๆ ไม่ตรงที่ต้องการอะครับ



 

ช่วยดู code อันนี้ให้หน่อยสิครับ ผมลองทำดูแล้วแต่มันแสดงผลแปลกๆ ไม่ตรงที่ต้องการอะครับ

 



Topic : 084281

Guest




Code (PHP)
<form id="fRegisterGano" action="registerGano.php" method="PSOT">
				<table style="width:100%">
					<tr>
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>ประเถทสมาชิก :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
                                                        <input type="radio" id="typeM" name="typeM" checked="checked" onClick="javaScript:if(this.checked){document.all.id_gano.style.display='none';document.all.position.style.display='none'}; document.all.upline.style.display='none';"/> ไม่เป็นสมาชิก Gano <br/>
							<input type="radio" id="typeM" name="typeM" onClick="javaScript:if(this.checked){document.all.id_gano.style.display='';document.all.position.style.display=''}; document.all.upline.style.display='';"/> เป็นสมาชิก Gano
						</td>
					</tr>
					<tr>
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>รหัสสมาชิก :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="text" id="user_id" name="user_id" size="25" maxlength="20"/>
							<input class="button" type="button" style="width:95px" value="ตรวจสอบ"
							onclick="check_id();"/>
						</td>
					</tr>
					<tr>
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>รหัสผ่าน :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="password" id="pass_id" name="pass_id" size="25" maxlength="20"/><font color="#FF0000">***</font>
						</td>
					</tr>
					<tr>
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>ยืนยันรหัสผ่าน :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="password" id="confirm_pass" name="confirm_pass" size="25" maxlength="20"/><font color="#FF0000">***</font>
						</td>
					</tr>
					<tr>
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>ชื่อ :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="text" id="user_name" name="user_name" size="50" maxlength="50"/><font color="#FF0000">***</font>
						</td>
					</tr>
					<tr>
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>นามสกุล :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="text" id="user_lname" name="user_lname" size="50" maxlength="50"/><font color="#FF0000">***</font>
						</td>
					</tr>
					<tr>
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>รหัสสมาชิก GANO :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="text" id="id_gano" name="id_gano" size="50" maxlength="6"/><font color="#FF0000">เฉพาะสมาชิก Gano</font> 
						</td>
					</tr>
					<tr>
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>ต่ำแหน่งสมาชิก GANO :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="text" id="position" name="position" size="50" maxlength="2"/><font color="#FF0000">เฉพาะสมาชิก Gano</font>
						</td>
					</tr>
					<tr>
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>Up-line :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="text" id="upline" name="upline" size="50" maxlength="100"/><font color="#FF0000">เฉพาะสมาชิก Gano</font>
						</td>
					</tr>
					<tr>
						<td colspan="2" style="text-align:center; border-bottom:solid 1 px #663300;">
							<input class="button" type="button" style="width:95px" value="ตกลง"
							onclick="register();"/>
						</td>
					</tr>
				</table>
			</form>


คือผมอยากให้มัน run แล้วขึ้นให้กรอกเฉพาะข้อมูลของบุคคลที่ไม่เป็นสมาชิกก่อนอะครับ แต่ตอนนี้มันขึ้นแบบสำหรับบุคคลที่เป็นสมาชิกอะครับ พอมาคลิ๊กที่ ไม่เป้นสมาชิก มันถึงจะโชว์แบบสำหรับบุคคลที่ไม่เป็นสมาชิกอะครับ

รบกวนหน่อยนะครับ



Tag : PHP







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2012-09-19 19:19:45 By : sorn View : 725 Reply : 1
 

 

No. 1



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

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

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


สมัครสมาชิกเถอะครับ

Code (PHP)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title>https://www.thaicreate.com/php/forum/084281.html</title>
  <meta name="Generator" content="EditPlus">
  <meta name="Author" content="Unidentifier">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <meta http-equiv="Content-Type" content="text/html; charset=utf8" />
  <script src="http://code.jquery.com/jquery-latest.js"></script>
  <script>
		$(document).ready(function(){
			var scopeDisplay = '';
			var scopeHide = $("input#typeM").not(":checked").attr("for");
			$("tr."+scopeHide).hide();

			$("input[type=radio]#typeM").change(function(){
				
				$("tr").each(function(){
					if($(this).attr("rel") === "scope")
						$(this).hide();
				});
				scopeDisplay = $(this,":checked").attr("for");				
				$("tr."+scopeDisplay).show();
				
			});
		});
  </script>
 </head>

 <body>
  <form id="fRegisterGano" action="registerGano.php" method="PSOT">
				<table style="width:100%">
					<tr>
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>ประเถทสมาชิก :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
                            <input type="radio" id="typeM" name="typeM" checked="checked" for="newregistry" /> ไม่เป็นสมาชิก Gano <br/>
							<input type="radio" id="typeM" name="typeM" for="onlymember" /> เป็นสมาชิก Gano
						</td>
					</tr>
					<tr class="newregistry" rel="scope">
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>รหัสสมาชิก :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="text" id="user_id" name="user_id" size="25" maxlength="20"/>
							<input class="button" type="button" style="width:95px" value="ตรวจสอบ"
							onclick="check_id();"/>
						</td>
					</tr>
					<tr class="newregistry" rel="scope">
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>รหัสผ่าน :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="password" id="pass_id" name="pass_id" size="25" maxlength="20"/><font color="#FF0000">***</font>
						</td>
					</tr>
					<tr class="newregistry" rel="scope">
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>ยืนยันรหัสผ่าน :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="password" id="confirm_pass" name="confirm_pass" size="25" maxlength="20"/><font color="#FF0000">***</font>
						</td>
					</tr>
					<tr class="newregistry" rel="scope">
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>ชื่อ :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="text" id="user_name" name="user_name" size="50" maxlength="50"/><font color="#FF0000">***</font>
						</td>
					</tr>
					<tr class="newregistry" rel="scope">
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>นามสกุล :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="text" id="user_lname" name="user_lname" size="50" maxlength="50"/><font color="#FF0000">***</font>
						</td>
					</tr>
					<tr class="onlymember" rel="scope">
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>รหัสสมาชิก GANO :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="text" id="id_gano" name="id_gano" size="50" maxlength="6"/><font color="#FF0000">เฉพาะสมาชิก Gano</font> 
						</td>
					</tr>
					<tr class="onlymember" rel="scope">
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>ต่ำแหน่งสมาชิก GANO :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="text" id="position" name="position" size="50" maxlength="2"/><font color="#FF0000">เฉพาะสมาชิก Gano</font>
						</td>
					</tr>
					<tr class="onlymember" rel="scope">
						<th style="text-align:right; width:25%; border-bottom:solid 1 px #663300;">
							<label>Up-line :</label>
						</th>
						<td style="text-align:left; width:75%; border-bottom:solid 1 px #663300;">
							<input type="text" id="upline" name="upline" size="50" maxlength="100"/><font color="#FF0000">เฉพาะสมาชิก Gano</font>
						</td>
					</tr>
					<tr>
						<td colspan="2" style="text-align:center; border-bottom:solid 1 px #663300;">
							<input class="button" type="button" style="width:95px" value="ตกลง"
							onclick="register();"/>
						</td>
					</tr>
				</table>
			</form>

 </body>
</html>








แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-09-19 22:47:55 By : sakuraei
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ช่วยดู code อันนี้ให้หน่อยสิครับ ผมลองทำดูแล้วแต่มันแสดงผลแปลกๆ ไม่ตรงที่ต้องการอะครับ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ 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 04
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 อัตราราคา คลิกที่นี่