A
Anonymous
Guest
Hello,
I want to be able to open a page using a variable instead of a direct link. Example:
this will work:
<input name="down" type="button" onClick="window.open('C:/download/file.txt')" value="Click Me">
but what I want to do is make the "C:/download/file.txt" a php variable like <?php $location="C:/download/file.txt" ?>
and then;
onClick=("$location")
but I can not get this to work. Any ideas ?
I want to be able to open a page using a variable instead of a direct link. Example:
this will work:
<input name="down" type="button" onClick="window.open('C:/download/file.txt')" value="Click Me">
but what I want to do is make the "C:/download/file.txt" a php variable like <?php $location="C:/download/file.txt" ?>
and then;
onClick=("$location")
but I can not get this to work. Any ideas ?