Forum OpenACS Q&A: Response to ns_returnredirect FORM vars vs URL vars

Posted by Bob OConnor on
p>Hi Robert,

You wrote:
"So you have three choices:
1) automatically redirect if you don't need user input...
2) pass info along in another form if you can have the user push a button
3) encode the form info into a link and have the user click on the link

Actually I like "Option D" best... or is it 4 😊

I want to:

  • Get a bunch of form vars from USER
  • Do Processing and conditionals.
  • Send bunches of form vars (NOT url vars) to an off site, without any further user intervention.

So far, what I have come up with is to put this javascript code on my Processing page.

(FORM NAME="myForm")

(SCRIPT LANGUAGE="JavaScript")(!--

I haven't tried it yet but it looks promising and if I get it working, I'll post results to this thread. Thank you.

PS: The Javascript tags above seemed to cause a 500 error when I SUBMITted it to this forum so I put and "( )" instead of < > in the code above to prevent the error.