xyn Posted August 5, 2006 Share Posted August 5, 2006 Hey,I have a small members area under-way it is for my company,However I wanted to use $_GET as a navigation and Includeto add the pages into the area I wish.[b]My problem...[/b]well I have got my files and folders as the below; And when I tryusing the links provided i get dual directories...[b]Folder Layout...[/b]+en/ +inc/ -config.php -nav1.php -[b][color=red]nav2.php[/color][/b]+ezone/ -[color=red][b]index.php[/b][/color][b][color=red]Problem 1[/color][/b]When I link the logout script using this code: [color=blue]<a href="../ezone/index.php?cat=acc&pg=logout">...</a>[/color]I get this link output...en/en/ezone/index.php?[b][color=red]Problem 2[/color][/b]I try changing it to remove the ../ so the link is: [color=blue]<a href="ezone/index.php?cat=acc&pg=logout">...</a>[/color]I get this...en/ezone/ezoneIs there any way of getting around this? Link to comment Share on other sites More sharing options...
ronverdonk Posted August 5, 2006 Share Posted August 5, 2006 You could use:[code]echo '<a href="' . $_SERVER['HTTP_HOST'] . '/ezone/index.php?cat=acc&pg=logout">';[/code] Link to comment Share on other sites More sharing options...
xyn Posted August 5, 2006 Author Share Posted August 5, 2006 nope, that didn't work... I got the "http://www.web.co.uk/"repeated 2 times. :/ Link to comment Share on other sites More sharing options...
ronverdonk Posted August 5, 2006 Share Posted August 5, 2006 Well, with me that statement only prints it once. So you must have something in your code that dups it somehow. Link to comment Share on other sites More sharing options...
Recommended Posts