 |
มีคำถามอยากจะถามหน่อยครับ ผมอยากจะส่งค่าจาก textbox ที่กรอกลงไป แล้วส่งไปยังป๊อปอัพอีกหน้าต่างหนึ่งครับ |
|
 |
|
|
 |
 |
|
ตามภาพเลยครับ
เวลากรอกข้อมูลใน textbox แล้วกดป๊อปอัพจะส่งค่าไปอีกหน้าต่างครับ

Code (PHP)
//โค๊ดจาวาสคริป
<script language="javascript">
function OpenPopup(intLine,userid)
{
window.open('checkem.php?userid=<?=$_GET['user'];?>&&Line='+intLine,'myPopup','width=450,height=200,toolbar=0, menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0');
}
</script>
index.php
Code (PHP)
<tr>
<td height="29"><div align="right"><span class="style46">รหัสบัตรประชาชนหรือพาสปอร์ต :</span></div></td>
td><div align="left">
<input name="user" value="<?=$_GET['user'];?>" type="text" id="user" style="background: #C0F9BD" size="20" />
</div></td>
</tr>
<tr>
<td height="22"><div align="right"><span class="style46">วันเดือนปีเกิด ค.ศ (20120101) :</span> </div></td>
<td><div align="left">
<input name="birthday" readonly="readonly" type="text" id="birthday" style="background: #C0F9BD" size="20" />
<input name="openPopup" type="button" id="openPopup" onClick="OpenPopup(1)" value="..">
</div></td>
</tr>
Tag : PHP, MySQL, JavaScript
|
|
 |
 |
 |
 |
Date :
2012-09-24 13:49:31 |
By :
compiak |
View :
1186 |
Reply :
9 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
Code (PHP)
//โค๊ดจาวาสคริป
<script language="javascript">
function OpenPopup(intLine,userid)
{
window.open('checkem.php?userid='+document.getElementById('user').value()+'&Line='+intLine,'myPopup','width=450,height=200,toolbar=0, menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0');
}
</script>
|
 |
 |
 |
 |
Date :
2012-09-24 14:01:39 |
By :
sakuraei |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ถ้าดี แนะนำให้ตรวจ ก่อนครับ จาก คห.1
Code (PHP)
//โค๊ดจาวาสคริป
<script language="javascript">
function OpenPopup(intLine,userid)
{
if (document.getElementById('user').value !=""){
window.open('checkem.php?userid='+document.getElementById('user').value()+'&Line='+intLine,'myPopup','width=450,height=200,toolbar=0, menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0');
}else{
alert("ใส่ ID CARD or PASSPROT ก่อนครับ");
}
}
</script>
|
 |
 |
 |
 |
Date :
2012-09-24 14:12:06 |
By :
tongspy |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
แท้งกิ้ว หลายๆ
ภาษาเหนือบ้านผมเรียกว่า ขอบคุณจ๊าดนักเน้อ 
|
 |
 |
 |
 |
Date :
2012-09-24 14:39:02 |
By :
compiak |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อยู่เจียงใหม่ก่อ
|
 |
 |
 |
 |
Date :
2012-09-24 14:58:49 |
By :
sakuraei |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อยู่เจียงฮายครับ
เอาโค๊ดไปใส่แล้ว
ว่าแต่กด ป๊อปอัพบ่ขึ้น 
|
 |
 |
 |
 |
Date :
2012-09-24 15:01:16 |
By :
compiak |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้ละเน้อครับ 
Code (JavaScript)
<script language="JavaScript">
function windowOpen() {
var myWindow=window.open('checkem.php?userid='+document.getElementById('user').value,'windowRef','width=400,height=200');
if (!myWindow.opener) myWindow.opener = self;
}
</script>
|
ประวัติการแก้ไข 2012-09-25 09:24:56
 |
 |
 |
 |
Date :
2012-09-25 09:24:22 |
By :
compiak |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|