Jump to content

Archived

This topic is now archived and is closed to further replies.

xyn

Slight problem...

Recommended Posts

Hey,
I have a small members area under-way it is for my company,
However I wanted to use $_GET as a navigation and Include
to 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 try
using 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/ezone

Is there any way of getting around this?

Share this post


Link to post
Share on other sites
You could use:

[code]echo '<a href="' . $_SERVER['HTTP_HOST'] . '/ezone/index.php?cat=acc&pg=logout">';[/code]

Share this post


Link to post
Share on other sites
nope, that didn't work... I got the "http://www.web.co.uk/"repeated 2 times. :/

Share this post


Link to post
Share on other sites
Well, with me that statement only prints it once. So you must have something in your code that dups it somehow.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.