First of all, it is usually a good idea to prefix your variables. I cannot
tell you how many times I have seen someone not prefix their variables, then
scratch their heads when there is a conflict and CF does it's own conflict
resolution.
<cfif Form.Publish EQ "1">
CFML/HTMl Here
<cfelseIf Form.Publish EQ "0">
CFML/HTML Here
<cfelse>
Error catching code here
</cfif>
Secondly, if this is a test machine, or you have access to the CF
Administrator, then I would turn on debugging to see if the variable is
really being passed.
HTH
----- Original Message -----
From: "Peter Fralin" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, August 17, 2001 6:27 PM
Subject: Fw: form fields not being passed on the action page
>
>
> I ran some tests to see if it could be the problem and the tests
indicated
> that it was not.
>
> - Peter
> >
> > > -----Original Message-----
> > > Date: Thu, 16 Aug 2001 15:06:28 -0400
> > > From: "Howarth, Craig (IBK-NY)" <[EMAIL PROTECTED]>
> > > Subject: RE: form fields not being passed on the action page
> > > Message-ID:
> > <[EMAIL PROTECTED]>
> > >
> > > Is it possible that the action page is being called directly -- i.e.
not
> > being posted. For instance, if someone has bookmarked the action page
> this
> > error might occur if publish is the first form
> > > variable referenced.
> > >
> > > Craig
> > >
> > > > -----Original Message-----
> > > > From: Peter Fralin [SMTP:[EMAIL PROTECTED]]
> > > > Sent: Thursday, August 16, 2001 3:00 PM
> > > > To: CF-Talk
> > > > Subject: form fields not being passed on the action page
> > > >
> > > > I have a form field that is in a couple of radio button input tags,
> here
> > is
> > > > the code
> > > >
> > > > <p><input type="radio" name="publish" value="1"> Please submit
> this
> > > > page for publishing.
> > > > <br><input type="radio" name="publish" value="0"
> > checked> This
> > > > page is in progress, please keep it in "Edit" mode.</p>
> > > >
> > > > As you can see the second input tag is checked, so the form would
have
> > to
> > > > return some value.
> > > >
> > > > But it is not as I am getting error messages from the action page
that
> > > > indicate that '#publish#' is not defined,
> > > > on the action page I have this code;
> > > >
> > > > <cfif publish is '1'>
> > > >
> > > > 99% of the time the page works without problem, but in a small
> > percentage of
> > > > the time the action page hits that line of code and errors out with
> the
> > > > following error message;
> > > >
> > > > An error occurred while evaluating the expression:
> > > > publish is '1'
> > > > Error near line 10, column 14
> > > > Error resolving parameter PUBLISH
> > > > ColdFusion was unable to determine the value of the parameter. This
> > problem
> > > > is very likely due to the fact that either:
> > > > You have misspelled the parameter name, or
> > > > You have not specified a QUERY attribute for a CFOUTPUT, CFMAIL,
> or
> > > > CFTABLE tag.
> > > >
> > > >
> > > > Any ideas as to why this is happening?
> > > >
> > > > - Peter Fralin
> > > >
> >
> >
> >
>
> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists