Converting image to work as button

Discussion in 'PHP' started by ashrafzia, Sep 24, 2006.

  1. #1
    Can anyone help me that how to convert an image to work as button.
    Actually my question involve different issues.
    I am making an online examination system in which in the admin area i have images instead of buttons for good look. Lets say i have an image Student Now when the student image (which will work as button) is clicked i should be proceeded to the same page, with these different options.
    Add Student
    Delete Student
    Edit Student
    Update Student
    Plz clarify me that in case of form buttons we make a hidden filed named let's say (h1) and then make its value to true and when that button is clicked, in the action of that form we provide the same file name, let's say student.php and then we have an isset() function and we check that either h1 form is submitted or other and then according to that form we write code.
    So in case of images how can we handle such things.
    I hope you get what i want to say
    Thanx for any help in advance.
     
    ashrafzia, Sep 24, 2006 IP
  2. GuitarFix

    GuitarFix Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Maybe u look for smth like this?
    <input type="image" src="btn.gif" name="testimage" onClick="alert('image');">
    Code (markup):
     
    GuitarFix, Sep 24, 2006 IP