Jump to content

Recommended Posts

paste the following code into your page

 

<?php
$page = $_GET['page'];
$colour = $_GET['colour'];

if ($page == 'links' && !$colour){
  echo '<p>This is the links page</p>';
}
elseif ($page == 'links' && $colour == 'red'){
  echo '<p style="color:red">This is the links page in red</p>';
}

?>

 

then type this link in your address bar (for your page)

 

index.php?page=links

 

now this:

 

index.php?page=links&colour=red

 

----------------

 

you will see how it works  ;D

Link to comment
https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-513016
Share on other sites

Its not the filename.

 

The file name would be index.php, then you would simply link to something like index.php?page=links and put a script like the one I wrote for you on that page.

 

It recognises that there is a dynamic call for something and echoes it out accordingly.

 

If you still dont understand then you need to start from the beginning...

 

http://www.phpvideotutorials.com

Link to comment
https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-513045
Share on other sites

  • 2 weeks later...

<style type="text/css">
A:link {text-decoration: none}
A:visited {text-decoration: none; color: blue}
A:active {text-decoration: none}
A:hover {text-decoration: underline; color: blue;}
</style>

<body bgcolor="#EEEEEE">
<br><br><br><center>
<table>
<tr><td>Chaos Layouts<td><p style="color:black"><a href="http://chaos-layouts.com/">Click Here to enter</a><br>
<tr><td>Static Layouts<td><a href="http://www.static-layouts.com">Click Here to enter</a><br>
<tr><td>Burning Violet<td><a href="http://www.burningviolet.com">Click Here to enter</a><br>
<tr><td>Search Optimizer<td><a href="http://www.addme.com">Click Here to enter</a><br>
<tr><td>Pimp my profile<td><a href="http://www.pimp-my-profile.com/partners/ref.php?in=1767">Click Here to enter</a><br>
<tr><td>code my layout<td><a href="http://www.codemylayout.com/">Click Here to enter</a><br>
<tr><td>top myspace layouts<td><a href="http://www.topmyspacesite.com/in.cgi?id=756">Click Here to enter</a><br>
<tr><td>!!panicked!!<td><a href="http://www.panicked.nuclearcentury.com/">Click Here to enter</a><br>
<tr><td>Free Code Source<td><a href="http://www.freecodesource.com/r:3001">Click Here to enter</a><br>
<tr><td>myspace layouts<td><a href="http://www.revolutionmyspace.com/index.php?r=921">Click Here to enter</a><br>
<tr><td>preppy layouts<td><a href="http://www.preppy-lyts.com/">Click Here to enter</a><br>
<tr><td>Layouts 24/7<td><a href="http://www.layouts247.net/">Click Here to enter</a><br>
<tr><td>Gravity<td><a href="http://www.gravitylayouts.com">Click Here to enter</a></a><br>
<tr><td>Overlooked<td><a href="http://overlookedd.com/">Click Here to enter</a><br>
<tr><td>Rich Gannon<td><a href="http://richgannon.info/?page=referin&id=16">Click Here to enter</a><br>
<tr><td>Free Website Templates<td><a href="http://www.colordip.com/" target="_blank">Click Here to enter</a></a><br>
<tr><td>Apply<td><a href="affiliate.php">Click Here to enter</a></div></p>
</table>
</center></body>

 

awesome eh? took me 10 minutes >:(

Link to comment
https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-521680
Share on other sites

<style type="text/css">
A:link {text-decoration: none}
A:visited {text-decoration: none; color: blue}
A:active {text-decoration: none}
A:hover {text-decoration: underline; color: blue;}
</style>

<body bgcolor="#EEEEEE">
<br><br><br><center>
<table>
<tr><td>Chaos Layouts<td><p style="color:black"><a href="http://chaos-layouts.com/">Click Here to enter</a><br>
<tr><td>Static Layouts<td><a href="http://www.static-layouts.com">Click Here to enter</a><br>
<tr><td>Burning Violet<td><a href="http://www.burningviolet.com">Click Here to enter</a><br>
<tr><td>Search Optimizer<td><a href="http://www.addme.com">Click Here to enter</a><br>
<tr><td>Pimp my profile<td><a href="http://www.pimp-my-profile.com/partners/ref.php?in=1767">Click Here to enter</a><br>
<tr><td>code my layout<td><a href="http://www.codemylayout.com/">Click Here to enter</a><br>
<tr><td>top myspace layouts<td><a href="http://www.topmyspacesite.com/in.cgi?id=756">Click Here to enter</a><br>
<tr><td>!!panicked!!<td><a href="http://www.panicked.nuclearcentury.com/">Click Here to enter</a><br>
<tr><td>Free Code Source<td><a href="http://www.freecodesource.com/r:3001">Click Here to enter</a><br>
<tr><td>myspace layouts<td><a href="http://www.revolutionmyspace.com/index.php?r=921">Click Here to enter</a><br>
<tr><td>preppy layouts<td><a href="http://www.preppy-lyts.com/">Click Here to enter</a><br>
<tr><td>Layouts 24/7<td><a href="http://www.layouts247.net/">Click Here to enter</a><br>
<tr><td>Gravity<td><a href="http://www.gravitylayouts.com">Click Here to enter</a></a><br>
<tr><td>Overlooked<td><a href="http://overlookedd.com/">Click Here to enter</a><br>
<tr><td>Rich Gannon<td><a href="http://richgannon.info/?page=referin&id=16">Click Here to enter</a><br>
<tr><td>Free Website Templates<td><a href="http://www.colordip.com/" target="_blank">Click Here to enter</a></a><br>
<tr><td>Apply<td><a href="affiliate.php">Click Here to enter</a></div></p>
</table>
</center></body>

 

awesome eh? took me 10 minutes >:(

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-521687
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.