Call us Toll-Free:
1-800-218-1525
Live ChatEmail us

 Sponsors

links example

Code Wizard, 12-30-2006

example of inserting a link on your site. this could be changed to insert something else aswell. I use this script on one of my pages, but it has more code and works in another way...you can include links on your php pages that could look like - "<a href=link.php?link=http://evilwalrus.com/>blah blah</a>" and more, this is a very easy way to include links on your pages. maybe when i feel like it, i can submit an example of how some of my own pages looks like (none sql version that is).

if ($link) {
echo "<br>";
echo "<br>";
# the text you want the user to read when he has clicked the link.
$text="click here to visit <b>$link</b>";
# print out the link.
echo "<a href=$link>$text<a/>";
echo "<br>";
echo "<br>";
# if script is being called like "link.php?link=" we send this. could also be removed.
}
else {
print "no argument.";
Enjoyed this post?

Subscribe Now to receive new posts via Email as soon as they come out.

 Comments
Post your comments












Note: No link spamming! If your message contains link/s, it will NOT be published on the site before manually approved by one of our moderators.



About Us  |  Contact us  |  Privacy Policy  |  Terms & Conditions