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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-26-2008, 04:30 PM   #1
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
Old 09-26-2008, 04:36 PM   #2
plyndrty
Confirmed User
 
plyndrty's Avatar
 
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:
<head>
<base href="http://www.test.com/>
</head>
__________________
Free Porno You Porn Fuck
plyndrty is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2008, 04:41 PM   #3
camperjohn64
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
camperjohn64 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2008, 04:42 PM   #4
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
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
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2008, 04:52 PM   #5
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
<a href="#?a=2">Next</a>
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2008, 04:53 PM   #6
FlexxAeon
Confirmed User
 
FlexxAeon's Avatar
 
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
FlexxAeon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2008, 04:55 PM   #7
Eriic
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?
Eriic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2008, 05:02 PM   #8
camperjohn64
Confirmed User
 
Industry Role:
Join Date: Feb 2005
Location: Los Angeles
Posts: 1,531
Quote:
Originally Posted by Lycanthrope View Post
<a href="#?a=2">Next</a>
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
camperjohn64 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.