I use the one page method of page navigation. You can see it at http://nigmanet.net. Depending on the value of the GET variable a specific page will be included. For some reason in NN and Mozilla I get a 404 error whenever I try to use that sane method of page navigation.
I have a link like this:
<a href="/?id=1">PAGE 1</a>
And in netscape when that link is clicked it takes you to this URL:
http://nigmanet.net/%5C?id=1
Can someone help me with this?
PHP GET variables & Mozilla
Moderator: General Moderators
try changing your code for the link from
to
i think the backslash is messing it up. If that doesn't work, try a forward slash.
Mark
Code: Select all
<a class="nav" href="\?id=0">News</a>Code: Select all
<a class="nav" href="?id=0">News</a>Mark
- mudkicker
- Forum Contributor
- Posts: 479
- Joined: Wed Jul 09, 2003 6:11 pm
- Location: Istanbul, TR
- Contact:
no no the second code is the right one no back or forward slashes!
but if for example you have a site http://www.site.com and you use the index.php for this one page nav method.
you can give the address so:
but if for example you have a site http://www.site.com and you use the index.php for this one page nav method.
you can give the address so:
Code: Select all
www.site.com/?page=3- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
I came up against this problem myself and the solution that we now use is to ensure that the name of the page is also included, so that instead of:
we'd have
You can use $_SERVER['PHP_SELF'] to get the page name if you need it to be more dynamic.
Mac
Code: Select all
<a href="?id=1">PAGE 1</a>Code: Select all
<a href="pagename.php?id=1">PAGE 1</a>Mac