New to PHP: will not feel bad if you let me know how terrible my syntax is![]()
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:This works great. (by the way unfortunately I HAVE to use the iframe)Code:<iframe src="<?php echo(htmlentities($_GET['file'])); ?>
Now I have added some anchor tags inside of main.html
the code looks like this:this Does not work:Code:<a name="anchor"></a>
http://www.mywebsite.com/index.php?f...in.html#anchor
nor,
http://www.mywebsite.com/index.php?f...n.html&#anchor
nor,
http://www.mywebsite.com/index.php?f...in.html&anchor
nor,
code for index:url: http://www.mywebsite.com/index.php?f...l&page=#anchorCode:<iframe src="<?php echo(htmlentities($_GET['file','page'])); ?>
Any suggestions would be appreciated.
Thnx



Reply With Quote


Bookmarks