Page 1 of 1

links in php

Posted: Thu Feb 19, 2004 2:39 pm
by outsider
how can i give a link if a condition is true?

Posted: Thu Feb 19, 2004 2:43 pm
by Dr Evil

Code: Select all

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

?>