If I use form default "grey submit" button, I can define value like:
<input type="submit" name="button1" value="submit">
However if I use image instead of "grey button", how can I define value?
<input type="image" name="button1" src="img1.jpg">
As I have multiple submit image buttons, so I need to submit its own value when I click on image button.
Any idea?

If I use form default "grey submit" button, I can define value like:
<input type="submit" name="button1" value="submit">
However if I use image instead of "grey button", how can I define value?
<input type="image" name="button1" src="img1.jpg">
As I have multiple submit image buttons, so I need to submit its own value when I click on image button.
Any idea?

U can try <input type="image" name="button1" src="img1.jpg" onClick="javascript:document.formName.submit();"> where formName is the name of the forms that holds this image.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.