Log in

View Full Version : How do you make a link that..



Xiwl
01-05-2007, 07:12 PM
Just adds a php thing on the end, so when you click "Here" it just adds &page=here to the end of the url

Aflux
01-05-2007, 07:14 PM
PHP Includes, although a little more in-depth.

www.php.net/includes

Lilian
01-05-2007, 07:16 PM
http://habboxforum.com/showthread.php?t=43037

Tutrial on the forum ;)

Xiwl
01-05-2007, 07:17 PM
no i know how to use includes, but say i wanted a link like;



<a href="&page=home">Click here</a href>


It trys to open the page called &page=home so how do i make a link which just adds &page=home to the end of the url

Aflux
01-05-2007, 07:18 PM
no i know how to use includes, but say i wanted a link like;



<a href="&page=home">Click here</a href>
It trys to open the page called &page=home so how do i make a link which just adds &page=home to the end of the url
Do what !Lily said - that girl rocks.

It's more complex than you think.

Xiwl
01-05-2007, 07:19 PM
Do what !Lily said - that girl rocks.

It's more complex than you think.

You dont understand, do you -.-

Drompo
01-05-2007, 07:22 PM
You have to use a PHP function called Classes.

Search it on google

Xiwl
01-05-2007, 07:23 PM
wait this might work, whats code to retrieve the url you're on, its something like server_uri

Mentor
02-05-2007, 12:10 AM
Well you cant start it with an &, it has to start with a ? then exstra critera are with ands

aka

?need=pie
is right
&need=pie
is wrong.

?need=pie&want=cake
is right
&need=pie&want=cake

etc etc

to make that have any effect somthing on the pages code has to read the get varibles and do somthing with em, if you just use the
?need=pie&want=cake, what your actualy loading is, index.php?need=pie&want=cake (or index with another exsention)

if you wanted it for a particual page, food.php?need=pie&want=cake is an example.

Hope that helps :)

Agnostic Bear
02-05-2007, 01:38 AM
Well you cant start it with an &, it has to start with a ? then exstra critera are with ands

aka

?need=pie
is right
&need=pie
is wrong.

?need=pie&want=cake
is right
&need=pie&want=cake

etc etc

to make that have any effect somthing on the pages code has to read the get varibles and do somthing with em, if you just use the
?need=pie&want=cake, what your actualy loading is, index.php?need=pie&want=cake (or index with another exsention)

if you wanted it for a particual page, food.php?need=pie&want=cake is an example.

Hope that helps :)

_Technically_ you could, but that would require some nifty stuff in mod_rewrite

As for Xiwi or whatever, listen to !Lily, she gave you the right link, what you're after is php navigation.

Argue and I WILL END YOU.

Sygon..
02-05-2007, 03:37 PM
_Technically_ you could, but that would require some nifty stuff in mod_rewrite

As for Xiwi or whatever, listen to !Lily, she gave you the right link, what you're after is php navigation.

Argue and I WILL END YOU.

Mod rewrite isnt all its crakced up to be if not done right.

Want to hide these adverts? Register an account for free!