SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: onclick

  1. #1
    SitePoint Guru
    Join Date
    Oct 2004
    Location
    uk
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    onclick

    Hi guys

    How can i edit the below so that the image submits when clicked

    it works in FF but not in IE

    PHP Code:
    <form method="get" id="login" action="login.php">

    <
    h3>Username</h3> <div><input type="text" value="" name="email" class="input1" />
    </
    div>
    <
    h3>Password</h3> <div><input type="password" value="" name="password" class="input1" />
    </
    div>
    <
    h4><a href="">Forgot Password?</a></h4>
    <
    div>
    <
    input type="image" src="images/submit3.png"name=submit>
    </
    div>
    </
    form

  2. #2
    masquerading Nick's Avatar
    Join Date
    Jun 2003
    Location
    East Coast
    Posts
    2,215
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First of all, your syntax for the image input has errors in it.

    Code:
    <input type="image" src="images/submit3.png" name="submit" />
    Nick . all that we see or seem, is but a dream within a dream
    Show someone you care, send them a virtual flower.
    Good deals on men's watches


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •