[PHP] using a php variable in javascript

2003-09-22 Thread Rich Fox
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:

Re: [PHP] using a php variable in javascript

2003-09-22 Thread Erwin Kerk
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();