Hi,
I have developed a webpage weblinks.cfm which shows the weblinks added by the users fron another page NewWeblink.cfm. On weblinks.cfm page the name of the weblink is a link which when clicked goes to the ViewEditWeblink.cfm. Here we can edit the data and click submit to go to EditWeblink.cfm page where I have written the following query to update the table in the database :
<cfquery datasource="weblink" dbtype="ODBC">
Update tblweblink
SET weblinkName='#Trim(FORM.weblinkname)#',
weblinkAddress='#Trim(FORM.weblinkaddress)#',
weblinkDescription='#Trim(FORM.weblinkdescription)#',
weblinkDepartment='#Trim(FORM.weblinkdepartment)#',
weblinkAuthor='#Trim(FORM.weblinkauthor)#',
WHERE weblinkID=#FORM.weblinkID#
</cfquery>
However when I update, it shows the following error,
An error occurred while evaluating the expression:
#Trim(FORM.weblinkname)#
Error near line 12, column 19.
Error resolving parameter FORM.WEBLINKNAME
The specified form field cannot be found. This problem is very likely due to the fact that you have misspelled the form field name.
The error occurred while processing an element with a general identifier of (#Trim(FORM.weblinkname)#), occupying document position (12:18) to (12:41).
I have developed a webpage weblinks.cfm which shows the weblinks added by the users fron another page NewWeblink.cfm. On weblinks.cfm page the name of the weblink is a link which when clicked goes to the ViewEditWeblink.cfm. Here we can edit the data and click submit to go to EditWeblink.cfm page where I have written the following query to update the table in the database :
<cfquery datasource="weblink" dbtype="ODBC">
Update tblweblink
SET weblinkName='#Trim(FORM.weblinkname)#',
weblinkAddress='#Trim(FORM.weblinkaddress)#',
weblinkDescription='#Trim(FORM.weblinkdescription)#',
weblinkDepartment='#Trim(FORM.weblinkdepartment)#',
weblinkAuthor='#Trim(FORM.weblinkauthor)#',
WHERE weblinkID=#FORM.weblinkID#
</cfquery>
However when I update, it shows the following error,
An error occurred while evaluating the expression:
#Trim(FORM.weblinkname)#
Error near line 12, column 19.
Error resolving parameter FORM.WEBLINKNAME
The specified form field cannot be found. This problem is very likely due to the fact that you have misspelled the form field name.
The error occurred while processing an element with a general identifier of (#Trim(FORM.weblinkname)#), occupying document position (12:18) to (12:41).