brads125 Posted April 9, 2008 Share Posted April 9, 2008 could you explain how to make links like this: http://www.tysakdesigns.com/layout/preview.php?cat=Defaults&layout=volcom2 http://www.phpfreaks.com/forums/index.php?action=post;board=1.0 :-\ Quote Link to comment https://forums.phpfreaks.com/topic/100319-links-with-php/ Share on other sites More sharing options...
soycharliente Posted April 9, 2008 Share Posted April 9, 2008 Give more information. What do you mean "how do you make them?" You just type them out Quote Link to comment https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-512972 Share on other sites More sharing options...
brads125 Posted April 9, 2008 Author Share Posted April 9, 2008 well i asked my webhost and he said it was done in php and i was wondering if you had to set up anything Quote Link to comment https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-513000 Share on other sites More sharing options...
cooldude832 Posted April 9, 2008 Share Posted April 9, 2008 go read what php does Quote Link to comment https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-513014 Share on other sites More sharing options...
fri3ndly Posted April 9, 2008 Share Posted April 9, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-513016 Share on other sites More sharing options...
brads125 Posted April 9, 2008 Author Share Posted April 9, 2008 Give more information. What do you mean "how do you make them?" You just type them out so are you saying that is the file name? Quote Link to comment https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-513029 Share on other sites More sharing options...
fri3ndly Posted April 9, 2008 Share Posted April 9, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-513045 Share on other sites More sharing options...
brads125 Posted April 19, 2008 Author Share Posted April 19, 2008 can you link to stylesheets in the file? Quote Link to comment https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-521610 Share on other sites More sharing options...
DeanWhitehouse Posted April 20, 2008 Share Posted April 20, 2008 why would you link to stylesheets like this? Quote Link to comment https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-521637 Share on other sites More sharing options...
brads125 Posted April 20, 2008 Author Share Posted April 20, 2008 http://chaoscodes.com/index.php?page=affiliates i mean like add a back ground color and format the text because it is very plain right now Quote Link to comment https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-521665 Share on other sites More sharing options...
DeanWhitehouse Posted April 20, 2008 Share Posted April 20, 2008 I would say you should use a javascript style changer with cookies to save the data. Quote Link to comment https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-521670 Share on other sites More sharing options...
dezkit Posted April 20, 2008 Share Posted April 20, 2008 <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 Quote Link to comment https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-521680 Share on other sites More sharing options...
brads125 Posted April 20, 2008 Author Share Posted April 20, 2008 <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 Quote Link to comment https://forums.phpfreaks.com/topic/100319-links-with-php/#findComment-521687 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.