HTML form input using image rating -


i'm trying create html form inputting risk of activities includes 2 images inputting data: a) severity of risk , b) likelihood of risk happening. have tried using imagemaps without success:

<form method="post">     <map name="image_map">         <area shape="rect" coords="0,0,10,25" alt="1" />         <area shape="rect" coords="10,0,20,25" alt="2" />         <area shape="rect" coords="20,0,30,25" alt="3" />         <area shape="rect" coords="30,0,40,25" alt="4" />         <area shape="rect" coords="40,0,50,25" alt="5" />     </map>     <input name="severity" type="image" width="50" height="25" src="images/rating.png" usemap="#image_map" />      <input name="liklihood" type="image" width="50" height="25" src="images/rating.png" usemap="#image_map" />     <input type="image" src="images/document_add.png" name="add" width="32" height="32"> </form> 

but when click on image, submits form (note there 3 images, 1 used submit form). thought splitting images , using them radio buttons, seems have use same image each radio button, i.e. values 1, 2, 3, 4 , 5 same image.

the image looks this: rating image. user should able click on part of , return between 1 , 5 each of 2 input fields.

how can 2 images in form?


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -