I am having a problem with my update form. Here is the code I have in my updateform.
<cfquery name="GetEventtoUpdate" datasource="Events">
SELECT *
FROM Events
WHERE ID = #URL.ID#
</cfquery>
<cfoutput query="GetEventtoUpdate">
<form action="updateaction.cfm" method="post">
<input type="Hidden" name="ID" value="#ID#"><br>
The code in my updateaction file is:
<cfquery name="UpdateEvent" datasource="Events">
UPDATE Events
SET
Title = '#form.title#',
PrintDesc = '#form.PrintDesc#',
InterDesc = '#form.InterDesc#',
IntraDesc = '#form.IntraDesc#',
Area = '#form.Area#',
location = '#form.Location#',
Ticketed = '#form.Ticketed#',
Kid = '#form.Kid#',
Handicap = '#form.Handicap#',
Category = '#form.Category#',
Subcategory = '#form.Subcategory#'
WHERE ID = #form.ID#
</cfquery>
When I try to test my form, I get the following error message:
An error occurred while evaluating the expression: <PRE> #URL.ID#</PRE>
Error resolving parameter <B>URL.ID</B>
Can someone tell me what I'm doing wrong? Thanks
<cfquery name="GetEventtoUpdate" datasource="Events">
SELECT *
FROM Events
WHERE ID = #URL.ID#
</cfquery>
<cfoutput query="GetEventtoUpdate">
<form action="updateaction.cfm" method="post">
<input type="Hidden" name="ID" value="#ID#"><br>
The code in my updateaction file is:
<cfquery name="UpdateEvent" datasource="Events">
UPDATE Events
SET
Title = '#form.title#',
PrintDesc = '#form.PrintDesc#',
InterDesc = '#form.InterDesc#',
IntraDesc = '#form.IntraDesc#',
Area = '#form.Area#',
location = '#form.Location#',
Ticketed = '#form.Ticketed#',
Kid = '#form.Kid#',
Handicap = '#form.Handicap#',
Category = '#form.Category#',
Subcategory = '#form.Subcategory#'
WHERE ID = #form.ID#
</cfquery>
When I try to test my form, I get the following error message:
An error occurred while evaluating the expression: <PRE> #URL.ID#</PRE>
Error resolving parameter <B>URL.ID</B>
Can someone tell me what I'm doing wrong? Thanks