Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Element LOGGEDINUSER is undefined in FORM.

Status
Not open for further replies.

lsd4mE

MIS
Jul 27, 2006
12
US
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>
 
I don't see this element defined in your form. Is there something we're missing here?

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
I'll have the roast duck with the mango salsa.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top