Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Picture as a Button

Status
Not open for further replies.

GaryC123

Programmer
Sep 10, 2002
1,041
NO
How can I make an image act as a button so when its clicked i can request the previous form values. Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
you can surround the image with a href liek this
<a href=&quot;#&quot; onClick=&quot;function call&quot;><img src=&quot;&quot;></a>
A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
I have URL linked with the image already but when its clicked and moves to the next page i cant request any variables and an hidden field isnt passed Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
are you submitting the values via
form.submit() or something of those sorts.

if you use the image input tag it may be better if your passing values

<input type=&quot;image&quot; src=&quot;&quot; width=&quot;&quot; height=&quot;&quot; alt=&quot;&quot; border=&quot;0&quot;>
A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
Got it. Cheers Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top