G
Gilbert Saint-Flour
Hello:
I have this one line of PHP code which I'd like to convert to Javascript.
The PHP code conditionally issues a BASE statement when the html page
is called with a frame name, e.g. href=index2.php?frame2
<html>
<head>
<? $tag = $_SERVER["QUERY_STRING"]; if(empty($tag)) {; } else { echo "<base target=$tag>"; } ?>
</head>
<body> . . . .
The problem is that I don't have PHP on my system and can't view the page,
unless I upload it to the server. I'd like to replace the php code with
javascript, but I don't know much about either php or JS. I've been
looking all over for an hour but haven't found the solution. Can one of
you get me started? Thanks.
I have this one line of PHP code which I'd like to convert to Javascript.
The PHP code conditionally issues a BASE statement when the html page
is called with a frame name, e.g. href=index2.php?frame2
<html>
<head>
<? $tag = $_SERVER["QUERY_STRING"]; if(empty($tag)) {; } else { echo "<base target=$tag>"; } ?>
</head>
<body> . . . .
The problem is that I don't have PHP on my system and can't view the page,
unless I upload it to the server. I'd like to replace the php code with
javascript, but I don't know much about either php or JS. I've been
looking all over for an hour but haven't found the solution. Can one of
you get me started? Thanks.