have you tried:

so = window.open('','<? echo $callerWin; ?>'); ??


Erwin Kerk Web Developer





Rich Fox wrote:

I have a page with the following code:

<?
$callerWin = $_POST['CallerWin'];
?>
<html>
<body>
<script type="text/javascript">
<!--
so = window.open('','CompanyEdit');
so.location.reload();
window.close();
// -->
</script>
</body>
</html>

I have 'CompanyEdit' hardcoded, but what I want instead is something like:

so = window.open('','$callerWin');

This does not work, of course, but you get the idea: I want to use the value
of the $callerWin php variable in my javascript. Can someone tell me the
syntax for this? My reading of the documentation and trial-and-error have
not met with success.

thanks,

Rich




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to