Question

We have a page with a form in OpenACS, and we'd like to redirect users to an external site/URL containing a totally different page/form.

How is it best done (on either the OpenACS-side or AOLServer-side)?

Was it helpful?

Solution

With OpenACS, here are some suggestions, starting with util_httppost:

http://openacs.org/forums/message-view?message_id=17963

I don't have privs to post more than one hyperlink, but inside this one there are links to other posts that discuss ns_returnredirect or just Javascript on the front end as a possible solution.

OTHER TIPS

I'd say go with ad_returnredirect http://openacs.org/api-doc/proc-view?proc=ad_returnredirect It's recommended over ns_returnredirect for the reasons described on the API link.

This an example, I hope this will be usefull for you:

ad_form -name form1 -form {

    ....

} -after_submit {

      ad_returnredirect -allow_complete_url "http://www.google.com/"
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top