|
 |
|
ติดปัญหาว่าส่งค่ากลับค่าเดียว(เรื่อง pop up ส่งค่ากลับ ) |
|
 |
|
|
 |
 |
|
ขอคำแนะนำหน่อยนะครับ ขอบคุณล่วงหน้าครับ
|
 |
 |
 |
 |
Date :
2010-01-14 12:07:59 |
By :
joeyonibaku |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอคำแนะนำหน่อยนะครับ
|
 |
 |
 |
 |
Date :
2010-01-14 12:55:31 |
By :
joeyonibaku |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ก็ทำเป็น array/object แล้วส่งกลับไปทั้ง array/object สิครับ
หรือจะทำเป็น function ก็ได้ เช่น
sample1.php
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<body bgcolor="#FFFFFF">
<form name="form1" method="post" action="">
<script language="JavaScript">
function callBackParam(n1, n2){
alert(n1+" "+n2);
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features).focus();
}
</script>
<input name="name" type="text" id="name">
<a href="javascript:MM_openBrWindow('Sample2.php','xxx','scrollbars=no,width=350,height=210')">เลือกข้อมูล</a>
</form>
</body>
</html>
sample2.php
<html>
<head>
</head>
<body>
<form action="" method="post">
<table width="200" border="1">
<tr>
<td width="78"><img src="nongmick.jpg" width="96" height="127"></td>
<td width="106"><img src="nongmick2.jpg" width="119" height="130"></td>
</tr>
<tr>
<td align="center"><input type="radio" name="pic" id="n" value="Mick1" ></td>
<td align="center"><input type="radio" name="pic" id="n2" value="Mick2"></td>
</tr>
<tr>
<td align="center"> </td>
<td align="center"><input type="submit" name="Submit" value="O.K." onClick=
"window.opener.callBackParam(document.getElementById('n').value, document.getElementById('n2').value ); window.close();">
<input type="reset" name="btnreset" value="Reset"></td>
</tr>
</table>
<p> </p>
</form>
</body>
</html>
ประมาณนี้ครับ
|
 |
 |
 |
 |
Date :
2010-01-14 14:12:30 |
By :
nut_t02 |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 01
|