PHP conditional links with mouseover

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
soundtrackit
Forum Newbie
Posts: 1
Joined: Wed Mar 04, 2009 8:58 am

PHP conditional links with mouseover

Post by soundtrackit »

Is it possible to have a conditional button appear with mouseover functionality? Here is my theoretical code that does not work:

Code: Select all

<?php if ($accountstatus['AccountAccepted'][0]==Accepted) {print("<a href ='account.php'><img src=images/3_black.jpg id='Image03' onmouseout='MM_swapImgRestore()' onmouseover='MM_swapImage('Image03','','images/3_grey.jpg',1)'></a>");} ?>
If there is a way to do this, please let me know. Thanks!
Post Reply