RE: form field parameter not recognized

2001-08-03 Thread Joel Parramore


How do you know the form field is there?  It's on the HTML form?  If it's
blank, that particular browser may not be passing it back to the server.
Just in case, use

CFIF IsDefined(form.gname) And form.gname IS 
/CFIF

instead to test for its existence, or use a CFPARAM tag to initialize the
form.gname field for safety.

Works around your immediate problem, at least...

Regards,
Joel


 -Original Message-
 From: Mark [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 02, 2001 3:11 PM
 To: CF-Talk
 Subject: form field parameter not recognized


 We're having a strange problem with form field
 parameters not being recognized when being passed to a
 second page even though all the code is there and the
 form field is present.

 Here's the code on the original page:

 form action=http://www.fancyblooms.com/test.cfm;
 method=post

 INPUT NAME=gname TYPE=TEXT SIZE=35
 MAXLENGTH=75 value= style=font-family:
 Verdana,Arial; font-size: 9pt;

 ... more form fields here

 input type=submit name=next value=Next -
 /form

 On the second page, test.cfm, there is a check to make
 sure that the first form field, gname, is not blank.

 CFIF form.gname IS  bError/bP

 ... etc

 The error that SOME visitors get is:

 Error resolving parameter FORM.GNAME. The specified
 form field cannot be found  

 Now, I know the form field is there, and I can't
 duplicate this error under any of the PC based
 browsers we use (IE, Netscape, Opera). The only common
 thing I do know is that the few people that did get
 this error are using AOL 5.0 and are on the MAC
 platform.

 I understand that I could use client side validation
 with CFFORM to make sure these fields are not empty,
 but I'm trying to avoid all the Javascript that goes
 along with it.

 Is anyone familiar with this problem? Is it AOL and
 MAC related? Any suggestions?

 Thanks everyone!

 Mark

 ===
 http://www.fancyblooms.com

~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



form field parameter not recognized

2001-08-03 Thread Mark

We're having a strange problem with form field
parameters not being recognized when being passed to a
second page even though all the code is there and the
form field is present.

Here's the code on the original page:

form action=http://www.fancyblooms.com/test.cfm;
method=post

INPUT NAME=gname TYPE=TEXT SIZE=35
MAXLENGTH=75 value= style=font-family:
Verdana,Arial; font-size: 9pt;

... more form fields here

input type=submit name=next value=Next -
/form

On the second page, test.cfm, there is a check to make
sure that the first form field, gname, is not blank. 

CFIF form.gname IS 
bError/bP

... etc

The error that SOME visitors get is:

Error resolving parameter FORM.GNAME. The specified
form field cannot be found  

Now, I know the form field is there, and I can't
duplicate this error under any of the PC based
browsers we use (IE, Netscape, Opera). The only common
thing I do know is that the few people that did get
this error are using AOL 5.0 and are on the MAC
platform. 

I understand that I could use client side validation
with CFFORM to make sure these fields are not empty,
but I'm trying to avoid all the Javascript that goes
along with it. 

Is anyone familiar with this problem? Is it AOL and
MAC related? Any suggestions?

Thanks everyone!

Mark

===
http://www.fancyblooms.com
~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: form field parameter not recognized

2001-08-03 Thread Dunwiddie, Bruce

how about the cf server side validation of 
input type=hidden name=gname_required value=You forgot to enter a
name.
put that input right below the gname input and let coldfusion server handle
the rest.

-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 2:11 PM
To: CF-Talk
Subject: form field parameter not recognized


We're having a strange problem with form field
parameters not being recognized when being passed to a
second page even though all the code is there and the
form field is present.

Here's the code on the original page:

form action=http://www.fancyblooms.com/test.cfm;
method=post

INPUT NAME=gname TYPE=TEXT SIZE=35
MAXLENGTH=75 value= style=font-family:
Verdana,Arial; font-size: 9pt;

... more form fields here

input type=submit name=next value=Next -
/form

On the second page, test.cfm, there is a check to make
sure that the first form field, gname, is not blank. 

CFIF form.gname IS 
bError/bP

... etc

The error that SOME visitors get is:

Error resolving parameter FORM.GNAME. The specified
form field cannot be found  

Now, I know the form field is there, and I can't
duplicate this error under any of the PC based
browsers we use (IE, Netscape, Opera). The only common
thing I do know is that the few people that did get
this error are using AOL 5.0 and are on the MAC
platform. 

I understand that I could use client side validation
with CFFORM to make sure these fields are not empty,
but I'm trying to avoid all the Javascript that goes
along with it. 

Is anyone familiar with this problem? Is it AOL and
MAC related? Any suggestions?

Thanks everyone!

Mark

===
http://www.fancyblooms.com
~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: form field parameter not recognized

2001-08-03 Thread Todd Ashworth

cfif not IsDefined('form.gname') or not Len(Trim(form.gname))  should
should work better.  It will trap if the field is blank or does not exist,
either one.

As to why it only seems to be happening on the Macs of AOL users, i have no
idea.

Todd

- Original Message -
From: Mark [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, August 02, 2001 2:10 PM
Subject: form field parameter not recognized


| We're having a strange problem with form field
| parameters not being recognized when being passed to a
| second page even though all the code is there and the
| form field is present.
|
| Here's the code on the original page:
|
| form action=http://www.fancyblooms.com/test.cfm;
| method=post
|
| INPUT NAME=gname TYPE=TEXT SIZE=35
| MAXLENGTH=75 value= style=font-family:
| Verdana,Arial; font-size: 9pt;
|
| ... more form fields here
|
| input type=submit name=next value=Next -
| /form
|
| On the second page, test.cfm, there is a check to make
| sure that the first form field, gname, is not blank.
|
| CFIF form.gname IS 
| bError/bP
|
| ... etc
|
| The error that SOME visitors get is:
|
| Error resolving parameter FORM.GNAME. The specified
| form field cannot be found  
|
| Now, I know the form field is there, and I can't
| duplicate this error under any of the PC based
| browsers we use (IE, Netscape, Opera). The only common
| thing I do know is that the few people that did get
| this error are using AOL 5.0 and are on the MAC
| platform.
|
| I understand that I could use client side validation
| with CFFORM to make sure these fields are not empty,
| but I'm trying to avoid all the Javascript that goes
| along with it.
|
| Is anyone familiar with this problem? Is it AOL and
| MAC related? Any suggestions?
|
| Thanks everyone!
|
| Mark



~~
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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists