View Single Post
Old 09-26-2008, 04:30 PM  
camperjohn64
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
Quick help with linking HTML code

I forget how to do this: When I am on page test.html?a=1 and want to link to page test.html?a=2, but I don't want to use the test.html part (I want to link from anypage.html?a=1 to anypage.html?a=2 etc...to the next page), I USED to do this:

Code:
 
test.html?a=1
 
<a href="?a=2">next page</a>
But now that seems to have stopped working. It goes to my root page with a=2. ie: http://www.mywebsite.com/?a=2 when what I really want it to do is go to http://www.mywebsite.com/test.html?a=2

I want to be able to add parameters to a page, without having to force the entire page in the URL so that it will correctly go to http://www.mywebsite.com/test.html?a=2. I forget how to do that.

I always thought that the rule was: that if the / is used, it goes from root URL, if not, it appends to current url. "/?a=2" is different than "?a=2" What I am getting, is a link that is behaving like a /?a=2 when what I want is ?a=2

What am I missing?
__________________
www.gimmiegirlproductions.com
camperjohn64 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote