PDA

View Full Version : Php


Lordangers
01-20-2009, 11:54 AM
How do I create a link in php?

Note: Please don't give me the way in html, I know that... >.>


I'm currently working on a script and I can't seem to find how to create a link.

Please help!

Dayo
01-20-2009, 01:08 PM
a php link is the same as html as u said there aint a php code for it (i think)

just use the echo command then the code

so
<?php
echo "text/link"
?>

ElJohno
01-21-2009, 07:54 AM
As far as I know, the easiest way of doing it is like Dayo said.
<?php echo "<a href=\"yoursitehere.com\">link name</a> "; ?>

If you don't want to use HTML.. I guess you could always use a redirection type of thing..?

Like this:
header("Location: yoursitehere.com")