hi i'm again with parse errors. How should the code below be to work? <?php $link="http://adsense.com/clicks.php"; ?> <a href=<? php $link ?> > <td bgcolor="#FFFFFF"> <font color="#008000" onmouseover=" " > title </font><br> <font color="#008000" >description</font><br> <font color="#008000" > displayurl</font> </td></a> PHP:
This code works <?$link="http://adsense.com/clicks.php";?> <a href="<?print $link;?>"> <td bgcolor="#FFFFFF"> <font color="#008000" onmouseover=" ">title</font><br> <font color="#008000">description</font><br> <font color="#008000">displayurl</font> </td> </a> Code (markup): and this also ... <?$link="http://adsense.com/clicks.php";?> <a href="<?print $link;?>"> <td bgcolor="#FFFFFF"> <font color="#008000" onmouseover=" ">title</font><br> <font color="#008000"> description<br> displayurl </font> </td> </a> Code (markup):
It isn't all the way proper though. <?php $link="http://adsense.com/clicks.php"; ?> <a href="<?php print $link;?>"> <td bgcolor="#FFFFFF"> <font color="#008000" onmouseover=" ">title</font><br> <font color="#008000"> description<br> displayurl </font> </td> </a> Code (markup): or <?php $link="http://adsense.com/clicks.php"; ?> <a href="<?php echo $link;?>"> <td bgcolor="#FFFFFF"> <font color="#008000" onmouseover=" ">title</font><br> <font color="#008000"> description<br> displayurl </font> </td> </a> Code (markup):
It's not proper because this method needs short tags to be enabled in php.ini, and it can be disabled, which would it prevent from working.
I know that, but I still wouldn't say it's "not proper" though. Considering the page is mostly HTML, it's more readable than using <a href="<?php print $link;?>"> HTML: