PDA

View Full Version : image type (input) button in a form messes up


spyny
12-08-2003, 07:33 AM
Hi!

I replaced a button in a form by an image, and now, all the javascript that worked is not working anymore.

Here's the current html code :
<input name="image" type="image" onClick="SendFormAllCtrlAdr(document.envmail)" value="Commander" src="../gifs/petits_elements/btn_commander_vert.gif" width="79" height="20">

I want a few javascript functions to check all the textfields before validating. The problem is that now, the button (type="image") validates the form even if all the fields are not correct.

Is there a turnaround or something because i don't want to put back the plain basic buttons.

If you wan to test the page (in french) :
http://cdip.com/geneatique_2004/commande.htm

thanks

cobo
12-08-2003, 08:19 AM
what has this to do with flash ?!?