links in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
outsider
Forum Newbie
Posts: 3
Joined: Tue Feb 17, 2004 3:51 pm
Contact:

links in php

Post by outsider »

how can i give a link if a condition is true?
User avatar
Dr Evil
Forum Contributor
Posts: 184
Joined: Wed Jan 14, 2004 9:56 am
Location: Switzerland

Post by Dr Evil »

Code: Select all

<?php
if ($condition=='True'){
echo ("<a href="http://www.google.com">link</a>")
}

?>
Post Reply