> 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]

Reply via email to