Forum Moderators: open

Message Too Old, No Replies

Element is undefined in FORM.

         

paseo

3:15 am on Feb 6, 2007 (gmt 0)

10+ Year Member



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>

paseo

5:15 pm on Feb 6, 2007 (gmt 0)

10+ Year Member



After researching for hours, and testing, i still am unable to resolve this issue. Can anybody get some insight on this? THanks in advance!

omoutop

3:10 pm on Feb 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



well i cant even echo "hello world" in asp, but just an idea.... do you have the LOGGEDINUSER field in your database? or your form? when you POST your data through your form is LOGGEDINUSER there?
if the LOGGEDINUSER is not part of the form, is it a hidden field? or some other element you forgot to include in the form?

AS i said, all of teh above are just ideas..