這裏是我的代碼:不重裝當點擊提交按鈕
member.php(頁)
<?php
$membertype=$_POST['txtmtn'];
$bookalit=$_POST['txtbal'];
$issueprd=$_POST['txtisp'];
$finegp=$_POST['selectfinegp'];
include '../connection.php';
if(isset($_POST['bttnsave']))
{
$sql="UPDATE member_type SET BookAllotmentLimit='$bookalit', IssueForPeriod='$issueprd',
FineGroupName='$finegp' WHERE MemberTypeName='$membertype'";
$res=mysql_query($sql);
}
?>
<form method="post" action="media.php">
<input type="text" name="txtmtn" id="txt" >
<input type="submit" name="bttncfg" id="button2" value="Create Fine Group" onClick="window.open('fine group.php', 'win1','width=420,height=320')">
當我點擊「bttncfg」按鈕罰款group.php將是開放的,但member.php的txtmtn值會丟..
順便說一句你想做什麼?以及彈出窗口會做什麼? – 2011-04-21 07:26:13
即時嘗試將數據保存到數據庫中,但不重新加載頁面這意味着文本字段數據將顯示&也保存在數據庫中 – sheetal369 2011-04-21 07:50:07