why I cannot insert '#Form.Email#'
I have a CF page "MemberExpress" like below
<cfFORM ACTION="MemberExpressRegActionPage.cfm" method="post">
..........
........
<dd><B>My Email:</b><cfINPUT TYPE="text" size="30" name="Email" message="Please enter your email address." required="yes" >
....
.....
......
</cfform>
In the page MemberExpressRegActionPage.cfm, I have this like below
<CFQUERY NAME="AddAppMemTable" DATASOURCE="MEM">
INSERT INTO Members
(HandleName, Age, BirthYear, State, CCountry, Email)
VALUES
('#Form.HandleName#', '#Form.Age#', '#Form.BirthYear#', '#Form.State#', '#Form.CCountry#', '#Form.Email#')
</CFQUERY>
The page cannot be posted sucessfully with error "An error occurred while executing the application. Please try again or contact the administrator."
The issue is I cannot insert '#Form.Email#' value into the database
If I remove '#Form.Email#' in page MemberExpressRegActionPage.cfm , I can insert sucesffully without issue. But if I include '#Form.Email#', the page doesnt work.
Also, if in page MemberExpressRegActionPage.cfm, I put an exact value like belwo, it works
<CFQUERY NAME="AddAppMemTable" DATASOURCE="MEM">
INSERT INTO Members
(HandleName, Age, BirthYear, State, CCountry, Email)
VALUES
('#Form.HandleName#', '#Form.Age#', '#Form.BirthYear#', '#Form.State#', '#Form.CCountry#', 'abc65432@yahoo.com')
</CFQUERY>
I spent hours to trooubleshooot, I have no clue what went wrong. Can someone help me? Also, how to debug what's wrong with it.
Thanks,
