Skip to main content
Participant
October 16, 2008
Question

problem with cfform

  • October 16, 2008
  • 2 replies
  • 397 views
is there anything wrong in this code.

<body>

<cfform name="RunningForm" method="post" action="AddEntry-cfform.cfm">
<table>
<tr>
<td>Date:</td>
<td><cfinput type="text" name="date" size="20"></td>
</tr>
<tr>
<td>Distance:</td>
<td><cfinput type="text" name="distance" size="20"></td>
</tr>
<tr>
<td>Time:</td>
<td><cfinput type="text" name="time" size="20"></td>
</tr>
<tr>
<td>Comments:</td>
<td><cftextarea rows="3" cols="40" name="comments"></cftextarea></td>
</tr>
<tr>
<td colspan="2" align="right">
<cfinput name="Add Entry" value="Add Entry" type="submit">
</td>
</tr>
</table>
</cfform>

</body>

on execution, getting error msg

Attribute validation error for tag CFINPUT.
The value of the attribute TYPE, which is currently "button", must be one of the values: RADIO,CHECKBOX,PASSWORD,TEXT.

The error occurred in /home/httpd/html/testing_subhash/form.cfm: line 29

27 : <tr>
28 : <td colspan="2" align="right">
29 : <cfinput name="Add Entry" value="Add Entry" type="button" />
30 : </td>
31 : </tr>


    This topic has been closed for replies.

    2 replies

    Participant
    October 16, 2008
    i just tried the code you wrote below. I didn't get any error. I'm running it on cf8. u still getting the error?
    Inspiring
    October 16, 2008
    which version of CF are you using?
    submit & button (as well as file, image, reset and hidden) types were
    added in CFMX7 only...

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/