tomo - yes indeed good spot!! but....
that still doesn't explain how the user has gone from the form page with
radio buttong selected, and therefore form variable defined (???), to the
action page where the form variable hasn't been recognised?
_______________________________________________________
* Regards,
Richard Lovelock,
Senior Application Analyst.
Westminster City Council - Web Support
Cap Gemini Ernst & Young
Southbank
95 Wandsworth Road
London
SW8 2HG
( 0870 906 7482
_______________________________________________________
-----Original Message-----
From: Tom Smith [mailto:[EMAIL PROTECTED]
Sent: 19 March 2004 16:09
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Friday Afternoon quiz
the param should be
<cfparam name="form.mailtype"
see the form bit:)
----- Original Message -----
From: "Lovelock, Richard J" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 19, 2004 4:03 PM
Subject: RE: [ cf-dev ] Friday Afternoon quiz
> >>>>1. are you declaring the form parameter first (especially important
> with
> checkboxes and radio buttons, which don't get sent unless something is
> selected). i'm guessing this will fix it. if not, proceed to 2.
>
> - won't the fact that one of the radio buttons are selcted ensure that
that
> form variable is defined on the action page?
> - also there is: <cfparam name="MailType" default=""> on the action page
>
>
> >>>>2. output the list of Form.fieldnames to see exactly what fields have
> been
> passed in - is mailtype in this list? if not, check your spelling etc.
>
> - This is working when I try it now and nothing has changed code
wise!!!???
>
>
> >>>>3. The app has been working for many many months without error and is
> working now. This appears to be a one-off but I don't see how it has
> happened (providing the above is correct)
>
> There are lots of places in CF code where sesssion variables are not being
> locked. Could this be a potential contributor towards our server/CF
> instabitlity problems? I may try doing a search on the whole site for
> session variable and put some locks around them all. Much of this code was
> written before I joined the assignment
>
>
> _______________________________________________________
> * Regards,
> Richard Lovelock,
> Senior Application Analyst.
> Westminster City Council - Web Support
> Cap Gemini Ernst & Young
> Southbank
> 95 Wandsworth Road
> London
> SW8 2HG
> ( 0870 906 7482
>
> _______________________________________________________
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: 19 March 2004 15:58
> To: [EMAIL PROTECTED]
> Subject: Re: [ cf-dev ] Friday Afternoon quiz
>
>
>
> 1. are you declaring the form parameter first (especially important with
> checkboxes and radio buttons, which don't get sent unless something is
> selected). i'm guessing this will fix it. if not, proceed to 2.
>
> 2. output the list of Form.fieldnames to see exactly what fields have
been
> passed in - is mailtype in this list? if not, check your spelling etc.
>
> 3. still kaput? change 'Global' to something else. it sounds like a
> reserved word, and even though the way you're using it is completely safe,
> stranger things have been known to happen.
>
> also, don't forget to lock your session variables, if you're not already
> doing so.
>
>
> Duncan Cumming
> IT Manager
>
> http://www.alienationdesign.co.uk
> mailto:[EMAIL PROTECTED]
> Tel: 0141 575 9700
> Fax: 0141 575 9600
>
> Creative solutions in a technical world
>
> ----------------------------------------------------------------------
> Get your domain names online from:
> http://www.alienationdomains.co.uk
> Reseller options available!
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
>
>
>
>
> "Lovelock,
>
> Richard J" To: "'cflist'"
> <[EMAIL PROTECTED]>
> <richard.lovelock cc:
>
> @cgey.com> Subject: [ cf-dev ]
Friday
> Afternoon quiz
>
>
> 19/03/2004 15:50
>
> Please respond to
>
> dev
>
>
>
>
>
>
>
>
> Right - I've had a problem call come through and it's stumped me a bit
>
> - I have a page, say Page A, with a form on and all it has at two radio
> buttons "called Mailtype" with the values "Global" and "Targetted" and a
> submit button.
> - The Global radio button is set to checked and so has black dot in
> - Page A submits to Page B.
> - Page B checks for the value of Form.MailType and sets session variable
> accordingly:
>
> <!--- Checks which type email has been chosen --->
> <cfif Form.mailtype EQ "Global">
> <cfset session.MailType = "global">
> <cflocation url="email_message.cfm" addtoken="No">
> <cfelseif Form.mailtype EQ "Targeted">
> <cfset session.MailType = "targeted">
> <cflocation url="email_sector_select.cfm" addtoken="No">
>
> An error has been generated:
>
>
>
> The following error message displayed when I tried to log in
>
>
> Error Occurred While Processing Request
>
>
> Error Diagnostic Information An error occurred while evaluating the
>
>
> expression: Form.mailtype EQ "Global" Error near line 37, column 20.
>
>
> Error resolving parameter FORM.MAILTYPE The specified form field cannot
>
>
> be found. This problem is very likely due to the fact that you have
>
>
> misspelled the form field name. The error occurred while processing an
>
>
> element with a general identifier of (CFIF), occupying document position
>
>
> (37:1) to (37:32) in the template file
>
>
> email_type_select.cfm.
>
>
> Referrer:
>
>
> choose_message_type.cfm
>
>
>
> The referrer would suggest that the user certainly went from the form to
> the action page, so I fail to understand how the form field can not be
> defined?
>
> This app has been working for a long time and no code changes have been
> made. Any ideas?
>
>
> _______________________________________________________<?xml:namespace
> prefix = o ns = "urn:schemas-microsoft-com:office:office" />
>
>
> * Regards,
> Richard Lovelock,
> Senior Application Analyst.
>
>
> Westminster City Council - Web Support
> Cap Gemini Ernst & Young
> Southbank
> 95 Wandsworth Road
> London
> SW8 2HG
>
>
> ( 0870 906 7482
>
> _______________________________________________________
>
>
>
>
>
> =======================================================
> This message contains information that may be privileged or confidential
> and is the property of the Cap Gemini Ernst & Young Group. It is intended
> only for the person to whom it is addressed. If you are not the intended
> recipient, you are not authorised to read, print, retain, copy,
> disseminate, distribute, or use this message or any part thereof. If you
> receive this message in error, please notify the sender immediately and
> delete all copies of this message.
> =======================================================
>
>
>
>
> --
> These lists are syncronised with the CFDeveloper forum at
> http://forum.cfdeveloper.co.uk/
> Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> CFDeveloper Sponsors and contributors:-
> *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided
> by activepdf.com*
> *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
> proworkflow.com*
> *Tutorials provided by helmguru.com* :: *Lists hosted by
> gradwell.com*
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>
> --
> These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
> Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> CFDeveloper Sponsors and contributors:-
> *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided
by activepdf.com*
> *Forums provided by fusetalk.com* :: *ProWorkFlow provided by
proworkflow.com*
> *Tutorials provided by helmguru.com* :: *Lists hosted by
gradwell.com*
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
--
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided
by activepdf.com*
*Forums provided by fusetalk.com* :: *ProWorkFlow provided by
proworkflow.com*
*Tutorials provided by helmguru.com* :: *Lists hosted by
gradwell.com*
To unsubscribe, e-mail: [EMAIL PROTECTED]
--
These lists are syncronised with the CFDeveloper forum at
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by
activepdf.com*
*Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
*Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*
To unsubscribe, e-mail: [EMAIL PROTECTED]