input type submit not working with anchor tag in IE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shivraj Parshene
    New Member
    • Feb 2008
    • 2

    input type submit not working with anchor tag in IE

    <a href="abc.php"> <input name="logout" value="Logout to Change Name" type="submit" ></a>


    it's not working in IE but works in Mozilla
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Originally posted by shivraj Parshene
    <a href="abc.php"> <input name="logout" value="Logout to Change Name" type="submit" ></a>
    it's not working in IE but works in Mozilla
    Proper way to do this is:
    Code:
    <a href="abc.php">Logout to Change Name"</a>
    Ronald

    Comment

    • yasmine
      New Member
      • Feb 2008
      • 64

      #3
      Originally posted by ronverdonk
      Proper way to do this is:
      Code:
      <a href="abc.php">Logout to Change Name"</a>
      Ronald

      Hi Ronald,

      If we want to create a link on the button means what has to do???
      That is what i'm asking is,
      There should be a button which says Logout, when we click on it, the page has to logout. For this what has to do?
      Why the previous code does n't work???

      Thanx n Regards
      Yas

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Originally posted by yasmine
        Hi Ronald,

        If we want to create a link on the button means what has to do???
        That is what i'm asking is,
        There should be a button which says Logout, when we click on it, the page has to logout. For this what has to do?
        Why the previous code does n't work???

        Thanx n Regards
        Yas
        <form action="logout. php" method="post">
        <input name="logout" value="logout" type="submit">
        </form>

        then catch it on logout.php

        Comment

        Working...