PHP / HTML
Posted: Fri Dec 03, 2010 12:12 pm
Hello
I have the following PHP file:
<?php
?>
<html>
<? $address = "cnn.com"; ?>
<A href="<?=$address?>">Go To</A>
</html>
I want the link value to be "cnn.com", and take it from a variable as I did. What's wrong here, and how I can fix it ?
( PHP 5.2.6, but tried it on PHP 5.3.3 too)
thanks.
I have the following PHP file:
<?php
?>
<html>
<? $address = "cnn.com"; ?>
<A href="<?=$address?>">Go To</A>
</html>
I want the link value to be "cnn.com", and take it from a variable as I did. What's wrong here, and how I can fix it ?
( PHP 5.2.6, but tried it on PHP 5.3.3 too)
thanks.