Help with Undefined Element within a Form
Hi. I am VERY new at this. I am running ColdFusion 9 using SQL+ for my DB. I encounter an error that states "Element MOVIE_ID is undefined in FORM. What am I missing in my FORM? I'm trying to pull the movie_id for the specific movie that is clicked on in the list results. Thanks for taking a look!!!!
<CFQUERY NAME="movie" DATASOURCE="dba192">
SELECT movie_id, title, category
FROM movie NATURAL JOIN category
<cfif FORM.title IS NOT "">
WHERE movie.Title LIKE '%#FORM.title#%'
</cfif>
<cfif FORM.category IS NOT "">
WHERE movie.category LIKE '%#FORM.category#%'
</cfif>
ORDER BY title
</CFQUERY>
<HTML>
<HEAD>
<TITLE>Movie Mania</TITLE>
<LINK REL=STYLESHEET TYPE="text/css" HREF="../styles.css">
</HEAD>
<BODY>
<cfFORM ACTION="find_detail.cfm" METHOD="post">
<table>
<tr>
<cfoutput>
<th>
<h3>Movie List (#Movie.RecordCount# movies)</h3>
</th>
<th>
<h3>Category</h3>
</th>
</cfoutput>
</tr>
<tr><td colspan="3"><hr /></td></tr>
<cfoutput query="movie">
<tr>
<td>
#CurrentRow#:
<input type="hidden" name="movie_id" value="#movie.movie_id#">
<a href="find_detail.cfm?movie_id=#movie.movie_id#">
#Title#</a>
</td>
<td>
#category#
</td>
</tr>
</cfoutput>
</table>
</cfform>
</body>
</html>
