text and a link??

Status
Not open for further replies.

PERL

Baseband Member
Messages
37
Hi,

What do I have to write if I want to add text
with a hyperlink in PHP??

Thank you
 
First of all, this belongs in Web Development. Secondly... do you mean just a plain old link? In php you can write HTML inside a print statement:

<?php
print("Link");
?>
 
actually it'd be
PHP:
<?php
print("<a href=\"page.html\">Link</a>");
?>

or
PHP:
<?php
print("<a title=\"Heres a link!\" href=\"page.html\">Link</a>");
?>
This one would put a Tooltip type box over when the users put their mouse over the link.


~sHan
 
Ahhh... my bad with the quotes... Somehow I can never remember to escape them. :confused:
 
Status
Not open for further replies.
Back
Top Bottom