Helping ordinary people create extraordinary websites!
   

I want to pass the php variable to popup window

Sunday, 27th June 2010
by ali786

<body>
<form method="post" action="js.php">
Email: <input name="email" type="text" value=""/><br />
Message:<br />
<textarea name="message" rows="15" cols="40" value=""></textarea><br />
<input type="submit" <? $var= $_POST['email']; ?>onClick="OpenPopup()"/>

<?

$var1=$var;
?>
</form>
<script type="text/javascript" language="javascript">
function OpenPopup ()
{
var test="<?php echo $var1; ?>";
openwindow=window.open("js.php?email="+ test,'Window1',"menubar=yes,width=430,height=360,toolbar=no");
// openwindow.document.write(test);
alert(test);
}
</script>

</body>





More PHP Help:
» How to select and display a set of images from a folder using PHP?
» Where can I find a script for uploading an sql file to a MySQL database server?
» What is the use of extract($_REQUEST);
» Splash screen
» How to make the direct link in index file to another without opening index in web?
» Is there a way to do Audio and video conferencing using php?
» How to integrate stream send API in PHP.
» Which PHP ecommerce shopping cart software should I purchase?

SPREAD THE WORD!
Tell a Friend

GET OUR NEWS

Developer Resources