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 upload .doc file using php?
» Where can I find a good PayPal PHP script?
» Inserting An Array Into A Database
» How to sanitize user submitted data?
» How to configure php on my system?
» Which script can I use for restoring my MySQL database?
» Financial Tools, Profit /loss etc
» How to make the direct link in index file to another without opening index in web?

SPREAD THE WORD!
Tell a Friend

GET OUR NEWS

Developer Resources