How do I pass a PHP variable in a java window.document.location command?
TIA
Stu
I am assuming that you are trying to do something like this... javascript: window.location ='http://someaddress.com/page_name.htm';
where you determine the page name using PHP(string it in a variable). What you can do is this:
javascript: window.location ='http://someaddress.com/<?php echo $variableName; ?>';
That should do it...I am pretty sure that will work. It's just like
echo "Hello, $yourName! Welcome to my first PHP page!";
JimboJones
First off, this is a JavaScript question, not a Java question. And to drop a PHP expression anywhere in a PHP page, just do <? echo($var); ?>, or if you're as lazy as I am, just use <?= $var; =>.