Hi,
What is the best way to display a link, etc using php? I know that I can use:
However, it doesn't make much sense to use php if all I'm doing is echoing the html code.PHP Code:echo "<a href=../index.php>Home</a>";
Thanks,
Nightwalker
Printable View
Hi,
What is the best way to display a link, etc using php? I know that I can use:
However, it doesn't make much sense to use php if all I'm doing is echoing the html code.PHP Code:echo "<a href=../index.php>Home</a>";
Thanks,
Nightwalker
close your php code, use HTML, open php again.
PHP Code:<?php
if ($jose == "taco") { ?>
<a href="hello.php">Hello</a>
<?php } else { ?>
<a href="goodbye.php">Goodbye</a>
<?php }
//code... code...
}
Ah ok! Thanks.