hi
i am having a form which contains an text field.,
when the submit button is clicked the value of the textfield should be taken into the new popup window to display the results.
i had tried but didnt get the solution.,
could anyone help me
here is my code;
(page name=first.php)
so when i enter the value and click the submit button., the page gets reloaded but no pop-up window is popped out.,
thanks
regards
vijay
i am having a form which contains an text field.,
when the submit button is clicked the value of the textfield should be taken into the new popup window to display the results.
i had tried but didnt get the solution.,
could anyone help me
here is my code;
(page name=first.php)
Code:
<script type="text/javascript">
function Newpopup(text)
{
var dd=document.getElementById("qq").value;
window.opener.document.newpopup_formname.fieldname.value = dd;
win=window.open(text,'','width=1010px,height=800px,scrollbars=yes');
}
</script>
<?
$act=$_REQUEST['act'];
$qq=$_POST['qq'];
if($act==1)
{
?>
<meta http-equiv="refresh" content="0;javascript:Newpopup('new_pop.php')" >
<?
}
?>
<form name="form1" id="form1" action="first.php?act=1" method="post">
text field:<input type="text" id="qq" size="18" name="qq" value="<? if($act==1) echo $qq;?>">
<input name="submit" type="submit" value="Submit" />
</form>
so when i enter the value and click the submit button., the page gets reloaded but no pop-up window is popped out.,
thanks
regards
vijay
Comment