2011-04-21 2 views
0
여기

내 코드입니다 : 내가 버튼 'bttncfg'을 클릭하면는 다시로드하지

<?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')"> 

벌금 group.php 열 수 있지만합니다

member.php (페이지) member.php 년대 txtmtn 값은 ..

+0

그런데 어떻게하려고합니까? 팝업은 무엇을 할 것인가? –

+0

메신저 데이터베이스에 데이터를 저장하려고하지만 페이지를 다시로드하지 않으려 고 시도하면 텍스트 필드 데이터가 표시되고 데이터베이스에 저장됨을 의미합니다. – sheetal369

답변

0

이 시도 손실됩니다 : 당신이 행동이 필요 <input type="submit"....에서

<input type="submit" name="bttncfg" id="button2" value="Create Fine Group" onClick="window.open('fine group.php', 'win1','width=420,height=320'); return false;"> 
0

을 어디 POS 가치. 당신이 값을 게시 할 곳은 페이지 이름이됩니다 및 해당 페이지에서 당신은 $_POST[' ']

+0

자세한 내용은 페이지에 어떤 값을 넣었는지 & 어떤 페이지를 가지고 있는지 자세히 알려주십시오. – sheetal369

+0

작업 = "fine group.php" –

0

변경 형태의 작용에 의해 가치를 얻을하고 대상 줄 것이다 :

<form method="post" action="fine group.php" target="win1"> 

이 방법 형태 것 새 브라우저 창에서 올바른 페이지에 게시하십시오.

+0

그럴 경우, 감사합니다. 대답은 ...... 매우 감사합니다. – sheetal369

+0

건배,이 경우에는 대답을 수락하십시오 (왼쪽의 V 아이콘 클릭). :) –

관련 문제