|
 |
|
อยากจะส่งค่าผ่านฟอร์ม ด้วยปุ่ม submit แต่ขึ้น popup อะครับพอจะทำได้ไหมครับ |
|
 |
|
|
 |
 |
|
ลองเล่นดูครับ มี 2 ไฟล์ตั้งชื่อตามนี้
z1.php
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" language="JavaScript">
<!--
function popWindow(wName){
features = 'width=400,height=400,toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no';
pop = window.open('',wName,features);
if(pop.focus){ pop.focus(); }
return true;
}
-->
</script>
</head>
<body>
<form action="z2.php" method="post" target="Details" onSubmit="return popWindow(this.target)">
<input type="text" name ="aaa" >
<input type="submit" value="กดกด">
</form>
</body>
</html>
z2.php
<?=$_POST['aaa']?>
|
 |
 |
 |
 |
Date :
2015-06-05 21:50:43 |
By :
meannerss |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|