|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
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> 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 |
|
|
|
|
|
#2 | |
|
Confirmed User
Join Date: Jul 2003
Location: Tampa
Posts: 1,477
|
I think I know what your talking about. But not a 100% sure. Maybe this is what your looking for
Quote:
__________________
Free Porno You Porn Fuck |
|
|
|
|
|
|
#3 |
|
Confirmed User
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
|
Not exactly.
Im looking for this functionality: <a href="http://www.test.com/page.html?a=1">page 1</a> <a href="http://www.test.com/page.html?a=2">page 2</a> <a href="http://www.test.com/page.html?a=3">page 3</a> <a href="http://www.test.com/page.html?a=4">page 4</a> But in this form as if it is on page.html: <a href="?a=1">page 1</a> <a href="?a=2">page 2</a> <a href="?a=3">page 3</a> <a href="?a=4">page 4</a> In other words, I don't want to have to make every page, know what page it is on. I just want: <a href="whatever page we are on, plus a=1">page 1</a> <a href="whatever page we are on, plus a=2">page 2</a> <a href="whatever page we are on, plus a=3">page 3</a> ... This works fine in IE, but not in Firefox, which means I need to make it work always. For some reason, Firefox is taking all links as absolute links and not relative links...
__________________
www.gimmiegirlproductions.com |
|
|
|
|
|
#4 |
|
Confirmed User
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
|
the code sample you show is correct and should work fine, just checked and it works here
__________________
|
|
|
|
|
|
#5 |
|
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
|
<a href="#?a=2">Next</a>
|
|
|
|
|
|
#6 |
|
Confirmed User
Industry Role:
Join Date: May 2003
Posts: 3,765
|
probably a browser thing. will this work? (didn't test it)
Code:
<a href="<?php print $_SERVER['PHP_SELF'];?>?a=2">next page</a>
__________________
flexx [dot] aeon [at] gmail |
|
|
|
|
|
#7 |
|
So Fucking Banned
Join Date: Jan 2008
Posts: 2,995
|
I am sorry but you are not allowed to link codes that way since your CP conviction back in 93 aren't I right?
|
|
|
|
|
|
#8 |
|
Confirmed User
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
|
Nope, doesn't work.
Here is the page: http://www.bodydot.com/view/608/Whit...ern-River.html Click on the "Videos" tab, in Firefox. It should take you to http://www.bodydot.com/view/608/Whit...iver.html?cv=v But instead it takes you to http://www.bodydot.com/?cv=v I hate FireFox. Why can't they just make agood browser like IE?...
__________________
www.gimmiegirlproductions.com |
|
|
|