Using multiple images as submit buttons
I have this form with 2 images as submit buttons
- <INPUT TYPE="image" SRC="assets/images/lgstart_b.png" ALT="Submit Form" name="time_in">
- <INPUT TYPE="image" SRC="assets/images/lgstop_bo.png" ALT="Submit Form" name="time_out">
The problem is I can tget the next page to acknowldge either button. I am using CF9
Here is the form2.cfm page
<cfif IsDefined("FORM.time_in.X")>
TIME IN
<cfelseif IsDefined("FORM.time_out.X")>
TIME OUT
<cfelse >
Nothing
</cfif>
I get an 'undefined' message only
I know I have done this before what am I missing?
Here is the form with the 2 images as submit buttons
<form action="form2.cfm" method="post">
<table cellpadding="0" cellspacing="5">
<tr>
<td align="center" class="crewlist_time"><strong>Status</strong></td>
</tr>
<cfoutput query="get_employees">
<tr>
<td width="20" align="left"><input type="checkbox" checked name="Employee_ID" value="#Employee_ID#"/></td>
<td class="crewlist_cell"> #EMPLOYEE_NAME# </td>
<div class="clock">
<div class="clockin">Clock In</div>
<INPUT TYPE="image" SRC="assets/images/lgstart_b.png" ALT="Submit Form" name="time_in">
</div>
<div class="clockrt">
<div class="clockin">Clock Out</div>
<INPUT TYPE="image" SRC="assets/images/lgstop_bo.png" ALT="Submit Form" name="time_out">
</div>
</div></cfoutput>
<br>
<br>
</form>
