Element LOGGEDINUSER is undefined in FORM.
is the error i receive when this files form (below) is submitted to to submit.cfm. The file below is being sent the value for a variable (loggedinuser). The value for loggedinuser is being sent using method of POST. Once the below file opens, it uses the POSTED value for loggedinuser to populate the select query. For some reason, even though that variable is only used to construct the query, when the form below all that is submitted, i get the error above. Is there something i would have to do to define that element as its saying its undefined...Thanks in advance!
Below is the code im using.
<cfquery name="dbdata" datasource="datasource">
SELECT * FROM table WHERE loggedinuser = '#form.loggedinuser#'
</cfquery>
<cfform format="flash" action="submit.cfm">
<cfinput type="text" name="firstname" label="First Name />
<cfinput type="text" name="lastname" label="Last Name" />
<cfinput type="submit" name="submit" />
</cfform>
is the error i receive when this files form (below) is submitted to to submit.cfm. The file below is being sent the value for a variable (loggedinuser). The value for loggedinuser is being sent using method of POST. Once the below file opens, it uses the POSTED value for loggedinuser to populate the select query. For some reason, even though that variable is only used to construct the query, when the form below all that is submitted, i get the error above. Is there something i would have to do to define that element as its saying its undefined...Thanks in advance!
Below is the code im using.
<cfquery name="dbdata" datasource="datasource">
SELECT * FROM table WHERE loggedinuser = '#form.loggedinuser#'
</cfquery>
<cfform format="flash" action="submit.cfm">
<cfinput type="text" name="firstname" label="First Name />
<cfinput type="text" name="lastname" label="Last Name" />
<cfinput type="submit" name="submit" />
</cfform>