Click to See Complete Forum and Search --> : input submit question


j_eagle
02-16-2005, 03:59 AM
Hello there !!

I have this: <form method="post" action="xpto.asp" id=form1 name=form1>

If I have this: <input type="submit" name="btnDel" value="delete"> Works fine the value «delete» goes to xpto.asp but when I have this with an image: <input type="image" src="xpto.jpg" name="btnDelete" value="delete">

Doesn't work. Is this tags correct?

Thanks very much

Jorge Nunes

Nadeem
02-16-2005, 04:30 AM
use it like this
<input type="submit" src="xpto.jpg" name="btnDelete" value="delete">

Nadeem
02-16-2005, 04:49 AM
oops that wont work if it doesnt do then u neeed to write a script
for submit that is invoked on click of the image or associate a href link with the button that submits the value

NogDog
02-16-2005, 10:05 AM
Try this:

<button name="btnDel" value="delete" type="submit"><img src="xpto.jpg" alt="Delete"></button>

See http://www.w3.org/TR/html4/interact/forms.html#h-17.5 for more info.