Jump to content


Photo

Slight problem...


  • This topic is locked This topic is locked
3 replies to this topic

#1 xyn

xyn
  • Members
  • PipPipPip
  • Advanced Member
  • 779 posts
  • LocationNorthampton

Posted 05 August 2006 - 07:21 PM

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.

My problem...
well I have got my files and folders as the below; And when I try
using the links provided i get dual directories...



Folder Layout...
+en/
      +inc/
      -config.php
      -nav1.php
      -nav2.php
+ezone/
    -index.php



Problem 1
When I link the logout script using this code: <a href="../ezone/index.php?cat=acc&pg=logout">...</a>

I get this link output...
en/en/ezone/index.php?


Problem 2
I try changing it to remove the ../ so the link is:  <a href="ezone/index.php?cat=acc&pg=logout">...</a>

I get this...
en/ezone/ezone

Is there any way of getting around this?

#2 ronverdonk

ronverdonk
  • Members
  • PipPipPip
  • Advanced Member
  • 277 posts
  • LocationNetherlands

Posted 05 August 2006 - 07:32 PM

You could use:

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

RTFM is an almost extinct art form, it should be subsidized.

#3 xyn

xyn
  • Members
  • PipPipPip
  • Advanced Member
  • 779 posts
  • LocationNorthampton

Posted 05 August 2006 - 07:35 PM

nope, that didn't work... I got the "http://www.web.co.uk/"repeated 2 times. :/

#4 ronverdonk

ronverdonk
  • Members
  • PipPipPip
  • Advanced Member
  • 277 posts
  • LocationNetherlands

Posted 05 August 2006 - 07:40 PM

Well, with me that statement only prints it once. So you must have something in your code that dups it somehow.

RTFM is an almost extinct art form, it should be subsidized.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users