Feb 25, 2006 #1 perryair IS-IT--Management Apr 7, 2005 91 IL Hi All, When I try to use <input type="image" src="img.gif" name="c" value="u"> It looks like the value="u" does not pass when I submit the form. Any idea?
Hi All, When I try to use <input type="image" src="img.gif" name="c" value="u"> It looks like the value="u" does not pass when I submit the form. Any idea?
Feb 25, 2006 #2 trollacious Programmer Sep 29, 2004 4,046 US What is your question about Javascript? Lee Upvote 0 Downvote
Feb 25, 2006 Thread starter #3 perryair IS-IT--Management Apr 7, 2005 91 IL Any way to tweak it using JS ? Upvote 0 Downvote
Feb 25, 2006 #4 trollacious Programmer Sep 29, 2004 4,046 US Maybe. Next question. Lee Upvote 0 Downvote
Feb 26, 2006 1 #5 BillyRayPreachersSon Programmer Dec 8, 2003 17,047 GB The input "image" element does not submit a "value". It submits only x and y coordinates: http://www.w3.org/TR/html401/interact/forms.html#idx-coordinates If you want to pass an arbitrary value, use a hidden field instead. No need for any JavaScript. Hope this helps, Dan [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt] Upvote 0 Downvote
The input "image" element does not submit a "value". It submits only x and y coordinates: http://www.w3.org/TR/html401/interact/forms.html#idx-coordinates If you want to pass an arbitrary value, use a hidden field instead. No need for any JavaScript. Hope this helps, Dan [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt]
Mar 3, 2006 #6 BillyRayPreachersSon Programmer Dec 8, 2003 17,047 GB perryair, Did you solve your problem in the end? Dan [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt] Upvote 0 Downvote
perryair, Did you solve your problem in the end? Dan [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt]
Mar 15, 2006 Thread starter #7 perryair IS-IT--Management Apr 7, 2005 91 IL YES.. THANKS !!! Upvote 0 Downvote