Page 1 of 1

How do i create php links ?

Posted: Fri Jun 23, 2006 3:57 pm
by Leon
Instead of just having the link

http://www.link.se on the board...

How do i make so i can add this link instead
(That still goes to http://www.link.se)

This link dosen't exist!
http://www.volunteerforum.se/link?=2123358
(when clicking on that link you should come to link.se)

Well i have no idé if it should be
?=11
or
&?=12
etc..

If i only know what this kind of method's name is im sure i can find
it in google, been searching for half an hour whit no luck so far.

Like this (on this page)
http://www.blawg.org/index.php
All links is pointing to a module.php that creates the link somehow

UPDATE:
Well i have found some now when searching for
"Link Maneger" But 98% of those script is so users can add link
to some kind of link directory. And the rest 2% is heck i have no idé.

I only want me (the admin) to be able to add and see the add link panel.
For internal use only

Posted: Sat Jun 24, 2006 3:07 am
by battye
Not sure about http://www.volunteerforum.se/link?=2123358

But if you are okay with http://www.volunteerforum.se/link.php?i=2123358

Code: Select all

<?php
if( $_GET['i'] == 2123358 )
{
header("Location: http://www.link.se/");
}
?>

Posted: Sat Jun 24, 2006 9:08 am
by Leon
Yep, thats perfect. Thanks :D

Posted: Sat Jun 24, 2006 9:34 am
by battye
You're welcome :)