php link bug in IE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • modiman
    New Member
    • Jun 2010
    • 1

    #1

    php link bug in IE

    Hi guys

    I have a problem with my links inside the php code. Nothing happens when i press the links in Internet Explorer.

    Code:
    <?php
            if ($username)
    		{
    			echo "<a href='members.php'><input type='button' class='formbutton' value='Members' /></a>&nbsp; | &nbsp;<a href='opret.php'><input type='button' class='formbutton' value='Tilmelding' /></a>&nbsp;&nbsp;|&nbsp; 
    			<a href='logout.php'><input type='button' class='formbutton' value='Logud' /></a>";
    		}
    		else
    		{
    			echo "You are not logged in | <a href='logout.php'><input type='button' class='formbutton' value='Login' /></a>";
    		}
            ?>
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    what do you expect the links to do, that they don’t? is the HTML correct?

    PS. buttons need a <form>, on which they apply.

    Comment

    Working...