shill
05-16-2006, 12:17 AM
New to PHP: will not feel bad if you let me know how terrible my syntax is:rolleyes:
I have an iframe that pulls info from the GET request.
my url looks something like this: http://www.mywebsite.com/index.php?file=main.html
The code for index:
<iframe src="<?php echo(htmlentities($_GET['file'])); ?>
This works great. (by the way unfortunately I HAVE to use the iframe)
Now I have added some anchor tags inside of main.html
the code looks like this:
<a name="anchor"></a>
this Does not work:
http://www.mywebsite.com/index.php?file=main.html#anchor
nor,
http://www.mywebsite.com/index.php?file=main.html&#anchor
nor,
http://www.mywebsite.com/index.php?file=main.html&anchor
nor,
code for index:
<iframe src="<?php echo(htmlentities($_GET['file','page'])); ?>
url: http://www.mywebsite.com/index.php?file=main.html&page=#anchor
Any suggestions would be appreciated.
Thnx
I have an iframe that pulls info from the GET request.
my url looks something like this: http://www.mywebsite.com/index.php?file=main.html
The code for index:
<iframe src="<?php echo(htmlentities($_GET['file'])); ?>
This works great. (by the way unfortunately I HAVE to use the iframe)
Now I have added some anchor tags inside of main.html
the code looks like this:
<a name="anchor"></a>
this Does not work:
http://www.mywebsite.com/index.php?file=main.html#anchor
nor,
http://www.mywebsite.com/index.php?file=main.html&#anchor
nor,
http://www.mywebsite.com/index.php?file=main.html&anchor
nor,
code for index:
<iframe src="<?php echo(htmlentities($_GET['file','page'])); ?>
url: http://www.mywebsite.com/index.php?file=main.html&page=#anchor
Any suggestions would be appreciated.
Thnx