thanks to all that responded, that's what I though... my work around, since
I have a whole bunch of fields on the first form, will be to save the fields
to a client variable on the first template and then assign their values to a
hidden field inside the last form, since the last form gets posted by the
client, then all the fields on the first template will be available again...
I have not tried this, but in theory it should work.... :-) 

Bismarck Perez


-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 10, 2000 2:34 PM
To: CF-Talk
Cc: '[EMAIL PROTECTED]'
Subject: RE: Passing forms fields problem


> I assume that you can not pass form field to another template 
> via a cflocation, so, here is my question, If I define the form 
> fields before doing the cflocation, will the fields be passed 
> that way? is there another way of doing this? since the template 
> is going to be processed in the server I assume I won't be able 
> to use javascript to submit the form, can the form submission be 
> done through cfscript, and does anybody have an example of
> doing the submission via cfscript...

You're correct; you can't pass form fields via CFLOCATION. You also can't
simply define the form fields before doing the CFLOCATION, either. Finally,
you can't submit a form using CFSCRIPT; submitting a form is a client-side
operation.

If you don't have too much form data, you could pass variables received from
a form as URL parameters:

<cflocation
url="myotherpage.cfm?formfield1=#Form.formfield1#&formfield2=#Form.formfield
2#">

Of course, you'll need to reference those variables as URL parameters in the
page to which you send them.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to