Expand|Select|Wrap|Line Numbers
- <cfform name="NEW_FORM" action="systemSubmit.cfm">
- <tr><td colspan=2 align="center"><h4>Submit New System</h4></td></tr>
- <tr><td align="right">Name:</td><td><input type="Text" name="name" size="50"></td></tr>
- <tr><td align="right">Description:</td><td><textarea name="description" cols="40" rows="5" maxlength="255"></textarea></td></tr>
- <tr><td colspan=2 align="center"><input type="Submit" name="Add" value="Add"></td></tr>
- </cfform>
Expand|Select|Wrap|Line Numbers
- <cfoutput>#NEW_FORM.Add#</cfoutput>
- <cfif isDefined("NEW_FORM.Add")>
- <cfquery name="updateSystem" datasource="Security_Access" dbtype="ODBC">
- insert into tblSystem (name,description,updDateTime)
- values ('#name#','#description#','#DateTime#')
- </cfquery>
- Thanks for your submission!
- </cfif>
I was able to get around this by not using cfform and just using form, but I'd like to know how I can use cfform.