using cfhttp to submit to a form processing page on another server

2006-10-26 Thread Andy Matthews
I'm testing something for a local contest. The details say that you can
submit as many times as you like so I'm trying out the old cfhttp the form
variables to their processing page.

When I run it once it works just fine, and appears to submit successfully.
So I bumped it up to 500 and went on doing my work. But it just sat and spun
for a few minutes then timed out with this error:

The request has exceeded the allowable time limit Tag: cfhttp
The error occurred on line 4.

So I reduced it further and further until I found that I could set it to 10
and it would run. That's little better than doing it all by hand so I want
to find out how I can go about increasing the time limit or something that
will let me run it at least 50 or 100 times in a row.

This is the code I'm using:
cfloop from=1 to=25 index=i
cfhttp url=http://dannyandnina.com/thanks.php; method=post
cfhttpparam name=state type=formField value=43
cfhttpparam name=town type=formField value=206
/cfhttp
cfoutput#i#br //cfoutput
/cfloop

Even s5 times out. This is one of things which my PHP friends would say that
PHP would have no problem with, and I know CF is every bit as powerful and
useful, but why am I encountering this issue?

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258150
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: using cfhttp to submit to a form processing page on another server

2006-10-26 Thread Snake
Why not just set it to a value that works, and set a schedules task to call
this page every minute

Snake 

-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: 26 October 2006 19:37
To: CF-Talk
Subject: using cfhttp to submit to a form processing page on another server

I'm testing something for a local contest. The details say that you can
submit as many times as you like so I'm trying out the old cfhttp the form
variables to their processing page.

When I run it once it works just fine, and appears to submit successfully.
So I bumped it up to 500 and went on doing my work. But it just sat and spun
for a few minutes then timed out with this error:

The request has exceeded the allowable time limit Tag: cfhttp The error
occurred on line 4.

So I reduced it further and further until I found that I could set it to 10
and it would run. That's little better than doing it all by hand so I want
to find out how I can go about increasing the time limit or something that
will let me run it at least 50 or 100 times in a row.

This is the code I'm using:
cfloop from=1 to=25 index=i
cfhttp url=http://dannyandnina.com/thanks.php; method=post
cfhttpparam name=state type=formField value=43
cfhttpparam name=town type=formField value=206
/cfhttp
cfoutput#i#br //cfoutput
/cfloop

Even s5 times out. This is one of things which my PHP friends would say that
PHP would have no problem with, and I know CF is every bit as powerful and
useful, but why am I encountering this issue?

!//--
andy matthews
web developer
certified advanced coldfusion programmer ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258151
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: using cfhttp to submit to a form processing page on another server

2006-10-26 Thread Ian Skinner
I believe you are running against the maximum request time out.  A setting on 
how long a page can be running.  This can be adjusted in either the 
administrator or with the cfapplication... tag.  I believe the url parameter 
is been deprecated in the current version of CF.

Another way we got around this issue just yesterday.  Only run one cfhttp per 
request, but then relocate to the page afterwards so that it runs again.  
You'll probably want some kind of trigger to stop this from going on endlessly. 
 We used a counter in the application scope.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258154
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: using cfhttp to submit to a form processing page on another server

2006-10-26 Thread Matt Quackenbush
You can also use cfsetting requesttimeout=number of seconds / to adjust
the timeout.
 

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 26, 2006 1:47 PM
To: CF-Talk
Subject: RE: using cfhttp to submit to a form processing page on another
server

I believe you are running against the maximum request time out.  A setting
on how long a page can be running.  This can be adjusted in either the
administrator or with the cfapplication... tag.  I believe the url
parameter is been deprecated in the current version of CF.

Another way we got around this issue just yesterday.  Only run one cfhttp
per request, but then relocate to the page afterwards so that it runs again.
You'll probably want some kind of trigger to stop this from going on
endlessly.  We used a counter in the application scope.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any attachments is for the
sole use of the intended
recipient(s) and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited. If you
are not the intended recipient, please contact the sender and delete any
copies of this message. 






~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258156
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: using cfhttp to submit to a form processing page on another server

2006-10-26 Thread Aaron Roberson
What state and town are you voting for...?

On 10/26/06, Andy Matthews [EMAIL PROTECTED] wrote:
 I'm testing something for a local contest. The details say that you can
 submit as many times as you like so I'm trying out the old cfhttp the form
 variables to their processing page.

 When I run it once it works just fine, and appears to submit successfully.
 So I bumped it up to 500 and went on doing my work. But it just sat and spun
 for a few minutes then timed out with this error:

 The request has exceeded the allowable time limit Tag: cfhttp
 The error occurred on line 4.

 So I reduced it further and further until I found that I could set it to 10
 and it would run. That's little better than doing it all by hand so I want
 to find out how I can go about increasing the time limit or something that
 will let me run it at least 50 or 100 times in a row.

 This is the code I'm using:
 cfloop from=1 to=25 index=i
 cfhttp url=http://dannyandnina.com/thanks.php; method=post
 cfhttpparam name=state type=formField value=43
 cfhttpparam name=town type=formField value=206
 /cfhttp
 cfoutput#i#br //cfoutput
 /cfloop

 Even s5 times out. This is one of things which my PHP friends would say that
 PHP would have no problem with, and I know CF is every bit as powerful and
 useful, but why am I encountering this issue?

 !//--
 andy matthews
 web developer
 certified advanced coldfusion programmer
 ICGLink, Inc.
 [EMAIL PROTECTED]
 615.370.1530 x737
 --//-


 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258158
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: using cfhttp to submit to a form processing page on another server

2006-10-26 Thread Ian Skinner
You can also use cfsetting requesttimeout=number of seconds / to adjust the 
timeout.
 

Ahh yes, that is what I meant, not the cfapplication ... tag.  I always get 
these confused.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258159
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: using cfhttp to submit to a form processing page on another server

2006-10-26 Thread Andy Matthews
Nashville, TN. Not that I care if they move here, but it really does fit a
lot of their criteria. I figured what the heck.

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Aaron Roberson [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 26, 2006 2:04 PM
To: CF-Talk
Subject: Re: using cfhttp to submit to a form processing page on another
server


What state and town are you voting for...?

On 10/26/06, Andy Matthews [EMAIL PROTECTED] wrote:
 I'm testing something for a local contest. The details say that you can
 submit as many times as you like so I'm trying out the old cfhttp the form
 variables to their processing page.

 When I run it once it works just fine, and appears to submit successfully.
 So I bumped it up to 500 and went on doing my work. But it just sat and
spun
 for a few minutes then timed out with this error:

 The request has exceeded the allowable time limit Tag: cfhttp
 The error occurred on line 4.

 So I reduced it further and further until I found that I could set it to
10
 and it would run. That's little better than doing it all by hand so I want
 to find out how I can go about increasing the time limit or something that
 will let me run it at least 50 or 100 times in a row.

 This is the code I'm using:
 cfloop from=1 to=25 index=i
 cfhttp url=http://dannyandnina.com/thanks.php; method=post
 cfhttpparam name=state type=formField value=43
 cfhttpparam name=town type=formField value=206
 /cfhttp
 cfoutput#i#br //cfoutput
 /cfloop

 Even s5 times out. This is one of things which my PHP friends would say
that
 PHP would have no problem with, and I know CF is every bit as powerful and
 useful, but why am I encountering this issue?

 !//--
 andy matthews
 web developer
 certified advanced coldfusion programmer
 ICGLink, Inc.
 [EMAIL PROTECTED]
 615.370.1530 x737
 --//-






~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258161
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: using cfhttp to submit to a form processing page on another server

2006-10-26 Thread Andy Matthews
That's a good idea. Thanks for the suggestion Ian!

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 26, 2006 1:47 PM
To: CF-Talk
Subject: RE: using cfhttp to submit to a form processing page on another
server


I believe you are running against the maximum request time out.  A setting
on how long a page can be running.  This can be adjusted in either the
administrator or with the cfapplication... tag.  I believe the url
parameter is been deprecated in the current version of CF.

Another way we got around this issue just yesterday.  Only run one cfhttp
per request, but then relocate to the page afterwards so that it runs again.
You'll probably want some kind of trigger to stop this from going on
endlessly.  We used a counter in the application scope.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-

C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.






~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258167
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Javascript prompt() and CF form processing question

2005-07-05 Thread Pete Ruckelshaus
On the project that I'm working on I want to allow users to select
folders (think more along the lines of a shopping cart) that they
can put documents into.  The folder selection will be via a dropdown
list.  I also want to allow users to send documents to a new folder,
and use JavaScript's prompt() function to prompt them for the folder
name, then send that value along with the selected documents to a
processing page that will add them to a new folder.

I'm having difficulty visualizing the programming steps involved,
primarily how do I prompt for the value and have that value sent along
with the processed form containing the ID's of the documents that I
want put in the new folder?  I think this is mainly a JavaScript
problem and JS isn't my strong suit.

Thanks

Pete

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211131
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Problem With Form Processing - Need Help

2004-10-17 Thread Harold Brauer
I am working on this UDF, making an array of structures so that if there is
an error on my form it will send the user back, highlight the fields that
need to be filled in and display an error message. The problem I am having
is that the Array is being set BEFORE the form is processed. The form is
being submitted back to itself as you can see in the code below. Can anyone
tell me what I am doing wrong?

CFPARAM NAME=Form.Process DEFAULT=FALSE

!--- Process Form and Set Errors If No errors occurprocess form and move
to location ---

CFIF Form.Process

!--- Are required fields filled in ---

cffunction name=reqiredfields
returntype=array

cfargument name=fields default=
required=yes

 !--- validate your inputs, set
Variables.ErrorText if anything failes ---

 cfif not
len(form.city)or not len(form.country)or not len(form.mgender) or not
len(form.dob1) or not len(form.title) or not len(form.message) or not
len(form.yold) or not len(form.mold)

!--- If Error
is found, create an Array of Structures ---

Cfset emessage
= ArrayNew(1)

Cfset emessage
[1] = StructNew()

Cfset
emessage[1].ecode = main

cfset
emessage[1].edisplay = Required fields are blank

/Cfif

cfreturn emessage

/cffunction

/cfif

CFIF ArrayLen(reqiredfields()) GT 0
link rel=STYLESHEET type=text/css href="">
title Sign Up Form - Error/title

Cfelse
 link rel=STYLESHEET type=text/css href="">

titleSign Up Form /title

/CFIF
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Problem With Form Processing - Need Help

2004-10-17 Thread Douglas Knudsen
something seem s odd about ur logic here.For one, ehy wrap the UDF
in the form.process check?Maybe try it like below.You had a
argument for teh UDF too, but not using it.Is form.process a form
control ?If nothing else, this direction below may lead you to
something fruitful...HTH

CFPARAM NAME=Form.Process DEFAULT=FALSE

!--- Process Form and Set Errors If No errors occurprocess form and move
to location ---


!--- Are required fields filled in ---

cffunction name=reqiredfields
returntype=array


 !--- validate your inputs, set
Variables.ErrorText if anything failes ---

 cfif not
len(form.city)or not len(form.country)or not len(form.mgender) or not
len(form.dob1) or not len(form.title) or not len(form.message) or not
len(form.yold) or not len(form.mold)

!--- If Error
is found, create an Array of Structures ---

Cfset emessage
= ArrayNew(1)

Cfset emessage
[1] = StructNew()

Cfset
emessage[1].ecode = main

cfset
emessage[1].edisplay = Required fields are blank

/Cfif

cfreturn emessage

/cffunction



CFIF form.process AND ArrayLen(reqiredfields()) GT 0
link rel=STYLESHEET type=text/css href="">
title Sign Up Form - Error/title

Cfelse
 link rel=STYLESHEET type=text/css href="">

titleSign Up Form /title

/CFIF

Doug

On Sun, 17 Oct 2004 14:11:12 -0700, Harold Brauer [EMAIL PROTECTED] wrote:
 I am working on this UDF, making an array of structures so that if there is
 an error on my form it will send the user back, highlight the fields that
 need to be filled in and display an error message. The problem I am having
 is that the Array is being set BEFORE the form is processed. The form is
 being submitted back to itself as you can see in the code below. Can anyone
 tell me what I am doing wrong?
 
 CFPARAM NAME=Form.Process DEFAULT=FALSE
 
 !--- Process Form and Set Errors If No errors occurprocess form and move
 to location ---
 
 CFIF Form.Process
 
 !--- Are required fields filled in ---
 
 cffunction name=reqiredfields
 returntype=array
 
 cfargument name=fields default=
 required=yes
 
!--- validate your inputs, set
 Variables.ErrorText if anything failes ---
 
cfif not
 len(form.city)or not len(form.country)or not len(form.mgender) or not
 len(form.dob1) or not len(form.title) or not len(form.message) or not
 len(form.yold) or not len(form.mold)
 
 !--- If Error
 is found, create an Array of Structures ---
 
 Cfset emessage
 = ArrayNew(1)
 
 Cfset emessage
 [1] = StructNew()
 
 Cfset
 emessage[1].ecode = main
 
 cfset
 emessage[1].edisplay = Required fields are blank
 
 /Cfif
 
 cfreturn emessage
 
 /cffunction
 
 /cfif
 
 CFIF ArrayLen(reqiredfields()) GT 0
 link rel=STYLESHEET type=text/css href="">
 title Sign Up Form - Error/title
 
 Cfelse
link rel=STYLESHEET type=text/css href="">
 
 titleSign Up Form /title
 
 /CFIF

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Form Processing Page

2002-01-10 Thread John Anderson

I have that exact code in an application that you can download.  It is
called parseDog.
It parses cold fusion applications and looks for pathing and
case-sensitivity issues.  While it is parsing through an app, it 
displays a
red bar that extends until it is done.  This is done using layers.  
Your
welcome to download the code and use what you wish it is free and open
source.

http://aloha-webdesign.com/

John


-Original Message-
From: Steve Martin [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 2:43 AM
To: CF-Talk
Subject: RE: Form Processing Page


script language=javascript
function startWaiting()
{
page.style.display='none';
waiting.style.display='block';
}
/script

body onbeforeunload=startWaiting()

div id=waiting
style=display:none;width:100%;height:100%;position:absolute;
table width=100% height=100% border=0
tr
td align=center
img
src=images/pleasewait.gif
/td
/tr
/table
/div  

div id=page style=display : block
Insert normal page content here
/div


Steve

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 20 December 2001 08:16
 To: CF-Talk
 Subject: Re: Form Processing Page
 
 
 I'm pretty new to CF, but can't you use cfflush to output bits of 
html
 before and during the processing?
 
 chris
 
 on 12/20/01 7:54 AM, Alex at [EMAIL PROTECTED] wrote:
 
  put it in a frame. have the top say waiting or background 
 color change or
  image ; have the bottom process your form. In your bottomm 
 have onload
  kill the top.
 

__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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 Processing Page

2001-12-21 Thread Steve Martin

script language=javascript
function startWaiting()
{
page.style.display='none';
waiting.style.display='block';
}
/script

body onbeforeunload=startWaiting()

div id=waiting
style=display:none;width:100%;height:100%;position:absolute;
table width=100% height=100% border=0
tr
td align=center
img
src=images/pleasewait.gif
/td
/tr
/table
/div  

div id=page style=display : block
Insert normal page content here
/div


Steve

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 20 December 2001 08:16
 To: CF-Talk
 Subject: Re: Form Processing Page
 
 
 I'm pretty new to CF, but can't you use cfflush to output bits of html
 before and during the processing?
 
 chris
 
 on 12/20/01 7:54 AM, Alex at [EMAIL PROTECTED] wrote:
 
  put it in a frame. have the top say waiting or background 
 color change or
  image ; have the bottom process your form. In your bottomm 
 have onload
  kill the top.
 
__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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 Processing Page

2001-12-20 Thread [EMAIL PROTECTED]

I'm pretty new to CF, but can't you use cfflush to output bits of html
before and during the processing?

chris

on 12/20/01 7:54 AM, Alex at [EMAIL PROTECTED] wrote:

 put it in a frame. have the top say waiting or background color change or
 image ; have the bottom process your form. In your bottomm have onload
 kill the top.
__
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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 Processing Page

2001-12-19 Thread WebMaster

I have a form that allows users to select from several options, then see 
reports based on their selections. Some of these reports can take several 
minutes to generate, so I'd like to put an interim page with a Processing 
message (perhaps an animated GIF) just to make them feel like something is 
happening and to prevent them from clicking on the submit button again.

I'm currently submitting to a page which uses cflist to parse 
#form.formfields#, builds a new form with all of the original fields as 
hidden variables, and then submits the form automatically using

body onLoad=document.myForm.submit();.

This seems to work, but I'm wondering if there is a better way to do it.

Anybody else doing something similar?

Thanks,

Mike
__
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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 Processing Page

2001-12-19 Thread Bryan Love

This one's kind of tricky and I haven't used it myself, but I've heard 
it
works like a charm...

use layers on your page.  Have a layer that contains only the
Processing... image, but hide it under the layer containing the form
(using Zindex).  Upon clicking the button just change the Zindex of the 
two
layers to swap places.

+---+
Bryan Love
  Macromedia Certified Professional
  Internet Application Developer
  Database Analyst
Telecomunication Systems
[EMAIL PROTECTED]
+---+

...'If there must be trouble, let it be in my day, that my child may 
have
peace'...
- Thomas Paine, The American Crisis



-Original Message-
From: WebMaster [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:27 PM
To: CF-Talk
Subject: Form Processing Page


I have a form that allows users to select from several options, then 
see 
reports based on their selections. Some of these reports can take 
several 
minutes to generate, so I'd like to put an interim page with a 
Processing 
message (perhaps an animated GIF) just to make them feel like something 
is 
happening and to prevent them from clicking on the submit button again.

I'm currently submitting to a page which uses cflist to parse 
#form.formfields#, builds a new form with all of the original fields as 

hidden variables, and then submits the form automatically using

body onLoad=document.myForm.submit();.

This seems to work, but I'm wondering if there is a better way to do 
it.

Anybody else doing something similar?

Thanks,

Mike

__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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 Processing Page

2001-12-19 Thread corrigan

Be very careful with layers though.  IE and NS process them differently 
and it can get real ugly real quick.  It's neat when you get it to work, 
but be ready for the possibility of a testing headache.  If you're not 
concerned about multiple browsers, then go nuts.

Michael Corrigan
Programmer
Endora Digital Solutions 
www.endoradigital.com
630/942-5211 x-134
  - Original Message - 
  From: Bryan Love 
  To: CF-Talk 
  Sent: Wednesday, December 19, 2001 4:32 PM
  Subject: RE: Form Processing Page


  This one's kind of tricky and I haven't used it myself, but I've heard 

  it
  works like a charm...

  use layers on your page.  Have a layer that contains only the
  Processing... image, but hide it under the layer containing the form
  (using Zindex).  Upon clicking the button just change the Zindex of 
the 
  two
  layers to swap places.

  +---+
  Bryan Love
Macromedia Certified Professional
Internet Application Developer
Database Analyst
  Telecomunication Systems
  [EMAIL PROTECTED]
  +---+

  ...'If there must be trouble, let it be in my day, that my child may 
  have
  peace'...
  - Thomas Paine, The American Crisis



  -Original Message-
  From: WebMaster [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, December 19, 2001 2:27 PM
  To: CF-Talk
  Subject: Form Processing Page


  I have a form that allows users to select from several options, then 
  see 
  reports based on their selections. Some of these reports can take 
  several 
  minutes to generate, so I'd like to put an interim page with a 
  Processing 
  message (perhaps an animated GIF) just to make them feel like 
something 
  is 
  happening and to prevent them from clicking on the submit button 
again.

  I'm currently submitting to a page which uses cflist to parse 
  #form.formfields#, builds a new form with all of the original fields 
as 

  hidden variables, and then submits the form automatically using

  body onLoad=document.myForm.submit();.

  This seems to work, but I'm wondering if there is a better way to do 
  it.

  Anybody else doing something similar?

  Thanks,

  Mike

  
__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
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 Processing Page

2001-12-19 Thread WebMaster

Everyone is required to have IE5.5+, so cross-browser is not an issue.

Is there a good resource with examples of how to implement layers in this
 way?

Thanks,

Mike




At 12/19/2001 04:39 PM, you wrote:
Be very careful with layers though.  IE and NS process them differently
and it can get real ugly real quick.  It's neat when you get it to work,
but be ready for the possibility of a testing headache.  If you're not
concerned about multiple browsers, then go nuts.

Michael Corrigan
Programmer
Endora Digital Solutions
www.endoradigital.com
630/942-5211 x-134
   - Original Message -
   From: Bryan Love
   To: CF-Talk
   Sent: Wednesday, December 19, 2001 4:32 PM
   Subject: RE: Form Processing Page


   This one's kind of tricky and I haven't used it myself, but I've heard

   it
   works like a charm...

   use layers on your page.  Have a layer that contains only the
   Processing... image, but hide it under the layer containing the form
   (using Zindex).  Upon clicking the button just change the Zindex of
the
   two
   layers to swap places.

   +---+
   Bryan Love
 Macromedia Certified Professional
 Internet Application Developer
 Database Analyst
   Telecomunication Systems
   [EMAIL PROTECTED]
   +---+

   ...'If there must be trouble, let it be in my day, that my child may
   have
   peace'...
   - Thomas Paine, The American Crisis



   -Original Message-
   From: WebMaster [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, December 19, 2001 2:27 PM
   To: CF-Talk
   Subject: Form Processing Page


   I have a form that allows users to select from several options, then
   see
   reports based on their selections. Some of these reports can take
   several
   minutes to generate, so I'd like to put an interim page with a
   Processing
   message (perhaps an animated GIF) just to make them feel like
something
   is
   happening and to prevent them from clicking on the submit button
again.

   I'm currently submitting to a page which uses cflist to parse
   #form.formfields#, builds a new form with all of the original fields
as

   hidden variables, and then submits the form automatically using

   body onLoad=document.myForm.submit();.

   This seems to work, but I'm wondering if there is a better way to do
   it.

   Anybody else doing something similar?

   Thanks,

   Mike



__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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 Processing Page

2001-12-19 Thread Shawn Grover

There's a system out there called CIZER.  It's a report management 
system
which allows you to present PDFs, HTML, Crystal Reports, etc., and can 
do
some rudimentary conversions.  You register your report with the 
system,
then it's just a URL link to display the report.

As an added bonus, it displays a window with a count down timer while 
it is
processing the reports.

If you already have your reports, and don't want to invest the bucks, 
you
can simulate this by posting your info to a new window - sized to be
relatively small, and centered maybe.  This new window would contain a
javascript routine to do some counting or something suitable, and would
trigger the actual report.  You could open the new report in the 
countdown
window, or in the main window - as long as you have a function called 
in the
onLoad to close/stop the countdown.

hope my ramblings help.

Shawn Grover



-Original Message-
From: WebMaster [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:27 PM
To: CF-Talk
Subject: Form Processing Page


I have a form that allows users to select from several options, then 
see 
reports based on their selections. Some of these reports can take 
several 
minutes to generate, so I'd like to put an interim page with a 
Processing 
message (perhaps an animated GIF) just to make them feel like something 

is 
happening and to prevent them from clicking on the submit button again.

I'm currently submitting to a page which uses cflist to parse 
#form.formfields#, builds a new form with all of the original fields as 


hidden variables, and then submits the form automatically using

body onLoad=document.myForm.submit();.

This seems to work, but I'm wondering if there is a better way to do 
it.

Anybody else doing something similar?

Thanks,

Mike


__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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 Processing Page

2001-12-19 Thread Alex

put it in a frame. have the top say waiting or background color change or
image ; have the bottom process your form. In your bottomm have onload
kill the top.

On Wed, 19 Dec 2001, WebMaster wrote:

 I have a form that allows users to select from several options, then see
 
 reports based on their selections. Some of these reports can take several
 
 minutes to generate, so I'd like to put an interim page with a Processin
g 
 message (perhaps an animated GIF) just to make them feel like something i
s 
 happening and to prevent them from clicking on the submit button again.
 
 I'm currently submitting to a page which uses cflist to parse 
 #form.formfields#, builds a new form with all of the original fields as
 
 hidden variables, and then submits the form automatically using
 
 body onLoad=document.myForm.submit();.
 
 This seems to work, but I'm wondering if there is a better way to do it.
 
 Anybody else doing something similar?
 
 Thanks,
 
 Mike
 
__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
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: Newbie question -- Dynamic form processing

2001-04-20 Thread Melissa Fraher

Thank you Clint and Rodney for your answers!

Melissa

"Bruce, Rodney" wrote:

 Melissa

 I haven't seen an answer back to you yet, so here is one possibly way.
 IF (assuming here) you are displaying all items for sale, with a text box to
 enter number of each item customer wants to buy: i.e (123, Shovels,
 garden,  []) (side comment you may want to display price):

 !--small change here, I would set default to 0(ZERO), for control and add a
 hidden to pass idnumber ---
 INPUT type="text" name="Item_#equipment.id#" SIZE="5" WIDTH="10" value="0"
 CLASS="monospace"

 INPUT type="hidden" name="Itemid_#equipment.id# value="#equipment.id#

 sample code for ACTION PAGE:

 CFQUERY name="equipment" datasource="DSN"
 SELECT  ID
 FROM Equipment
 ORDER BY  ID
 /CFQUERY

 CFOUTPUT query="equipment"
 CFSET quanity = "#EVALUATE("item_#equipment.id#")#"
 CFSET idnum = "#EVALUATE("itemid_#equipment.id#")#"
 CFIF quanity GT 0
 CFSET soldequipment= #quanity#
 CFSET eqiuipmentid = #idnum#
 /CFIF
 /CFOUTPUT

 This will get you the to vars for use on your action page,  you can expand
 on this to pass other vars you would want to work with.
 you might want to look at using a CFLOOP index instead of the id from the
 query.

 let me know if this helps, if someone has given you a better way, please let
 me know.  I have been working with this type of thing for awhile now and
 haven't gotten very far myself.

 -Original Message-
 From: Melissa Fraher [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 18, 2001 1:32 PM
 To: CF-Talk
 Subject: Newbie question -- Dynamic form processing

 Hello everyone.
 How do you handle processing dynamic forms?

 Here is my example code:

 CFQUERY name="equipment" datasource="DSN"
 SELECT  ID, Category, Item
 FROM Equipment
 ORDER BY  ID
 /CFQUERY

 HTML
 BODY

 FORM METHOD="post" action="ActionPage.cfm" 

 TABLE

   TR
  TD CLASS="title" WIDTH="141" HEIGHT="13"ID/TD
  TD CLASS="title" WIDTH="141" HEIGHT="13"Category/TD
  TD CLASS="title" WIDTH="248" HEIGHT="13"Item/TD
  TD CLASS="title" WIDTH="91" HEIGHT="13"Quantity
 /TD
   /TR

 CFOUTPUT query="equipment"
 TR
  TD CLASS="text" HEIGHT="5"#equipment.ID#/TD
  TD CLASS="text" HEIGHT="5"#equipment.category#/TD
  TD CLASS="text" HEIGHT="5"#equipment.item#/TD
  TD CLASS="text" HEIGHT="5"

  INPUT type="text" name="Item_#id#" SIZE="5" WIDTH="10" value=""
 CLASS="monospace"

  /TD
 /TR
 /CFOUTPUT

 /FORM
 /BODY
 /HTML

 This code will generate a form with over 150 text boxes.  The user
 should be able to order more than one item.

 Any suggestions on a clever way to process this form would be greatly
 appreciated.

 I would hate to hard code Item_1, Item_2, Item_3.Item_150.

 Thanks in advance.

 Melisas


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Newbie question -- Dynamic form processing

2001-04-19 Thread Bruce, Rodney

Melissa 

I haven't seen an answer back to you yet, so here is one possibly way.
IF (assuming here) you are displaying all items for sale, with a text box to
enter number of each item customer wants to buy: i.e (123, Shovels,
garden,  []) (side comment you may want to display price):

!--small change here, I would set default to 0(ZERO), for control and add a
hidden to pass idnumber ---
INPUT type="text" name="Item_#equipment.id#" SIZE="5" WIDTH="10" value="0"
CLASS="monospace" 

INPUT type="hidden" name="Itemid_#equipment.id# value="#equipment.id#


sample code for ACTION PAGE:

CFQUERY name="equipment" datasource="DSN"
SELECT  ID
FROM Equipment
ORDER BY  ID
/CFQUERY



CFOUTPUT query="equipment"
CFSET quanity = "#EVALUATE("item_#equipment.id#")#"
CFSET idnum = "#EVALUATE("itemid_#equipment.id#")#"
CFIF quanity GT 0
CFSET soldequipment= #quanity#
CFSET eqiuipmentid = #idnum#
/CFIF
/CFOUTPUT 


This will get you the to vars for use on your action page,  you can expand
on this to pass other vars you would want to work with.
you might want to look at using a CFLOOP index instead of the id from the
query.

let me know if this helps, if someone has given you a better way, please let
me know.  I have been working with this type of thing for awhile now and
haven't gotten very far myself.






-Original Message-
From: Melissa Fraher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 1:32 PM
To: CF-Talk
Subject: Newbie question -- Dynamic form processing


Hello everyone.
How do you handle processing dynamic forms?

Here is my example code:

CFQUERY name="equipment" datasource="DSN"
SELECT  ID, Category, Item
FROM Equipment
ORDER BY  ID
/CFQUERY

HTML
BODY

FORM METHOD="post" action="ActionPage.cfm" 

TABLE

  TR
 TD CLASS="title" WIDTH="141" HEIGHT="13"ID/TD
 TD CLASS="title" WIDTH="141" HEIGHT="13"Category/TD
 TD CLASS="title" WIDTH="248" HEIGHT="13"Item/TD
 TD CLASS="title" WIDTH="91" HEIGHT="13"Quantity
/TD
  /TR

CFOUTPUT query="equipment"
TR
 TD CLASS="text" HEIGHT="5"#equipment.ID#/TD
 TD CLASS="text" HEIGHT="5"#equipment.category#/TD
 TD CLASS="text" HEIGHT="5"#equipment.item#/TD
 TD CLASS="text" HEIGHT="5"

 INPUT type="text" name="Item_#id#" SIZE="5" WIDTH="10" value=""
CLASS="monospace"

 /TD
/TR
/CFOUTPUT

/FORM
/BODY
/HTML


This code will generate a form with over 150 text boxes.  The user
should be able to order more than one item.

Any suggestions on a clever way to process this form would be greatly
appreciated.

I would hate to hard code Item_1, Item_2, Item_3.Item_150.

Thanks in advance.

Melisas
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Newbie question -- Dynamic form processing

2001-04-18 Thread Melissa Fraher

Hello everyone.
How do you handle processing dynamic forms?

Here is my example code:

CFQUERY name="equipment" datasource="DSN"
SELECT  ID, Category, Item
FROM Equipment
ORDER BY  ID
/CFQUERY

HTML
BODY

FORM METHOD="post" action="ActionPage.cfm" 

TABLE

  TR
 TD CLASS="title" WIDTH="141" HEIGHT="13"ID/TD
 TD CLASS="title" WIDTH="141" HEIGHT="13"Category/TD
 TD CLASS="title" WIDTH="248" HEIGHT="13"Item/TD
 TD CLASS="title" WIDTH="91" HEIGHT="13"Quantity
/TD
  /TR

CFOUTPUT query="equipment"
TR
 TD CLASS="text" HEIGHT="5"#equipment.ID#/TD
 TD CLASS="text" HEIGHT="5"#equipment.category#/TD
 TD CLASS="text" HEIGHT="5"#equipment.item#/TD
 TD CLASS="text" HEIGHT="5"

 INPUT type="text" name="Item_#id#" SIZE="5" WIDTH="10" value=""
CLASS="monospace"

 /TD
/TR
/CFOUTPUT

/FORM
/BODY
/HTML


This code will generate a form with over 150 text boxes.  The user
should be able to order more than one item.

Any suggestions on a clever way to process this form would be greatly
appreciated.

I would hate to hard code Item_1, Item_2, Item_3.Item_150.

Thanks in advance.

Melisas


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Newbie question -- Dynamic form processing

2001-04-18 Thread Clint Tredway

try:
cfoutput query="equipment"
input type="text" name="Item_#id#" size="20" maxlength="50" value="#item#"brbr
/cfoutput

This will generate the result you want.

HTH

-- Original Message --
From: Melissa Fraher [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Wed, 18 Apr 2001 16:31:41 -0400

Hello everyone.
How do you handle processing dynamic forms?

Here is my example code:

CFQUERY name="equipment" datasource="DSN"
SELECT  ID, Category, Item
FROM Equipment
ORDER BY  ID
/CFQUERY

HTML
BODY

FORM METHOD="post" action="ActionPage.cfm" 

TABLE

  TR
 TD CLASS="title" WIDTH="141" HEIGHT="13"ID/TD
 TD CLASS="title" WIDTH="141" HEIGHT="13"Category/TD
 TD CLASS="title" WIDTH="248" HEIGHT="13"Item/TD
 TD CLASS="title" WIDTH="91" HEIGHT="13"Quantity
/TD
  /TR

CFOUTPUT query="equipment"
TR
 TD CLASS="text" HEIGHT="5"#equipment.ID#/TD
 TD CLASS="text" HEIGHT="5"#equipment.category#/TD
 TD CLASS="text" HEIGHT="5"#equipment.item#/TD
 TD CLASS="text" HEIGHT="5"

 INPUT type="text" name="Item_#id#" SIZE="5" WIDTH="10" value=""
CLASS="monospace"

 /TD
/TR
/CFOUTPUT

/FORM
/BODY
/HTML


This code will generate a form with over 150 text boxes.  The user
should be able to order more than one item.

Any suggestions on a clever way to process this form would be greatly
appreciated.

I would hate to hard code Item_1, Item_2, Item_3.Item_150.

Thanks in advance.

Melisas
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Help with Form Processing please....

2000-06-17 Thread Les Mizzell

Need a small bit of help to get some form stuff to process correctly
please

Three Fields on the form I'm concerned with:

"AdminName" is a drop downbox with three choices:
"Kathi Smith" with a value of "1"
"Fatima Jones" with a value of "2"
"Other" with a value of "3"

Below this are two text boxes to fill out if you selected "OTHER"

"OTHERNAME"
"OTHEREMAIL"

On the CF page to process this, I wish the form contents to have the correct
"From" email address and name on it, based on the selection on the form. I
was hoping the block of code below would accomplish this, but nope:

1.  CFIF #AdminName# IS "1"
2.  varName EQ "Kathi Smith"
3.  varReplyto EQ "[EMAIL PROTECTED]"
4.  CFELSEIF #AdminName# IS "2"
5.  varName EQ "Fatima Jones"
6.  varReplyto EQ "[EMAIL PROTECTED]"
7.  CFELSE #AdminName# IS "3"
8.  varName EQ #OTHERNAME#
9.  varReplyto EQ #OTHEREMAIL#
10. /CFIF


The error seems to be line 8 and 9.  The variables "varName" and
"varReplyto" need to come from the text input on the form if the "Other"
selection is made from the dropdown box.

I'm stupid.  What's wrong?

In addition, exactly where should this chuck of code (once it's working) go
on the CF process page?  At the very top?  Inside the body tag right before
the area that needs it?

Sorry, lowly newbie slowly learning.

Thanks


Les Mizzell
***
Who needs Intel?
Athlon Inside!!!

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Help with Form Processing please....

2000-06-17 Thread Brett Payne-Rhodes

Hi Les,

If the code snippet you provide is verbatim then I think line 7 should
either be CFELSEIF #AdminName# IS "3" or simply CFELSE, otherwise I
don't see a problem - but that might not mean much ;)

Brett
B)


Les Mizzell wrote:
 
 Need a small bit of help to get some form stuff to process correctly
 please
 
 Three Fields on the form I'm concerned with:
 
 "AdminName" is a drop downbox with three choices:
 "Kathi Smith" with a value of "1"
 "Fatima Jones" with a value of "2"
 "Other" with a value of "3"
 
 Below this are two text boxes to fill out if you selected "OTHER"
 
 "OTHERNAME"
 "OTHEREMAIL"
 
 On the CF page to process this, I wish the form contents to have the correct
 "From" email address and name on it, based on the selection on the form. I
 was hoping the block of code below would accomplish this, but nope:
 
 1.  CFIF #AdminName# IS "1"
 2.  varName EQ "Kathi Smith"
 3.  varReplyto EQ "[EMAIL PROTECTED]"
 4.  CFELSEIF #AdminName# IS "2"
 5.  varName EQ "Fatima Jones"
 6.  varReplyto EQ "[EMAIL PROTECTED]"
 7.  CFELSE #AdminName# IS "3"
 8.  varName EQ #OTHERNAME#
 9.  varReplyto EQ #OTHEREMAIL#
 10. /CFIF
 
 The error seems to be line 8 and 9.  The variables "varName" and
 "varReplyto" need to come from the text input on the form if the "Other"
 selection is made from the dropdown box.
 
 I'm stupid.  What's wrong?
 
 In addition, exactly where should this chuck of code (once it's working) go
 on the CF process page?  At the very top?  Inside the body tag right before
 the area that needs it?
 
 Sorry, lowly newbie slowly learning.
 
 Thanks
 
 Les Mizzell
 ***
 Who needs Intel?
 Athlon Inside!!!
 
 --
 Archives: http://www.eGroups.com/list/cf-talk
 To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Help with Form Processing please....

2000-06-17 Thread Dave Watts

 On the CF page to process this, I wish the form contents to
 have the correct "From" email address and name on it, based
 on the selection on the form. I was hoping the block of code
 below would accomplish this, but nope:

 1.  CFIF #AdminName# IS "1"
 2.varName EQ "Kathi Smith"
 3.varReplyto EQ "[EMAIL PROTECTED]"
 4.  CFELSEIF #AdminName# IS "2"
 5.varName EQ "Fatima Jones"
 6.varReplyto EQ "[EMAIL PROTECTED]"
 7.  CFELSE #AdminName# IS "3"
 8.varName EQ #OTHERNAME#
 9.varReplyto EQ #OTHEREMAIL#
 10. /CFIF


 The error seems to be line 8 and 9.  The variables "varName" and
 "varReplyto" need to come from the text input on the form if
 the "Other" selection is made from the dropdown box.

On line 7, you're using a CFELSE instead of a CFELSEIF. You use CFELSE
without a condition. So, you could either do this:

CFIF AdminName IS 1

CFELSEIF AdminName IS 2

CFELSEIF AdminName IS 3

/CFIF

or this:

CFIF AdminName IS 1

CFELSEIF AdminName IS 2

CFELSE

/CFIF

which would execute the block of code following the CFELSE tag if AdminName
were anything other than 1 or 2.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



form processing

2000-04-13 Thread Angie Miner

How can I find out what form variables are being passed to a cfm page?


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: form processing

2000-04-13 Thread Derrick Shoemake

You can do a #FORM.FieldName# This is a list of all the
fields passed by a form. I found the following example
somewhere (I would give them credit if I could)

CFLOOP LIST = "#FORM.FieldName#" INDEX = "ThisField"
 CFOUTPUT
  The value of FORM.#ThisField# is #Evaluate("FORM."  ThisField)#BR
 /CFOUTPUT
/CFLOOP

-Original Message-
From: Angie Miner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 13, 2000 12:09 PM
To: [EMAIL PROTECTED]
Subject: form processing


How can I find out what form variables are being passed to a cfm page?



--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: form processing

2000-04-13 Thread Duane Boudreau

form.fieldnames contains a list all form variables

or in CF 4.5

cfloop list="#StructKeyList(form)#" index="formvar"
cfoutput#formvar# = #Evaluate("form.#formvar#")#/cfoutput
/cfloop

Duane



-Original Message-
From: Angie Miner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 13, 2000 1:09 PM
To: [EMAIL PROTECTED]
Subject: form processing


How can I find out what form variables are being passed to a cfm page?



--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: form processing

2000-04-13 Thread John N Westerlund

Look at the file source of the preceding page for input textarea etc.
There's no way to see server or session variables. You might be able to see
the variables in the URL address of the next page ie
www.somesite.com/index.cfm?method=displaybookid=75author=foofoo
If it's your site, then open the cfm page.


-Original Message-
From: Angie Miner [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Thursday, April 13, 2000 3:02 PM
Subject: form processing


How can I find out what form variables are being passed to a cfm page?



--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: form processing

2000-04-13 Thread Steve Aylor


#Form.FieldList#


- Original Message -
From: "Angie Miner" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 13, 2000 10:08 AM
Subject: form processing


 How can I find out what form variables are being passed to a cfm page?


 --

 Archives: http://www.eGroups.com/list/cf-talk
 To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.



--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.