Forum OpenACS Development: Re: How to use util::httppost

Collapse
Posted by Torben Brosten on
Can the id be generated before the form is submitted, for example when the form is created?

If you can have the id generated and included with the form hidden input (via https to the browser), then I think posting directly to the other site will work.  For a manually created form, I think you can do what you want by changing the form tag's action attribute to "https://somesite.com/actionpageurl".  I'm not sure how to specify that in ad_form as I haven't learned it yet.

Otherwise, I think you'll have to use a cookie to convey the data.

Hmm.. Well, that would be via http and insecure, not what you want.

Looks like the requests would go like this:

browser requests form via https from site1

site1 generates id and returns form via https with id

broswer posts via https to site2