Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

"GET" form method possible?

Hi Experts:

I'd like to know if this can be done, and if so what is the best approach.

I'd like to have two things happen when a web form is submitted:

1. send an email with some information captured on the form included in it
and
2. issue a "POST" form method to an external URL which includes some captured information from the form as well (i.e. the user would end up at the external website looking at the "POST" processed response from there.

If I could get away with a "POST" form method his would be straightforward to do with a webquerysave agent that sends an email, and a $$Return field with some code to structure the URL. It's the necessity of the GET method which I'm stuck on.

-KK
0
kkiddie
Asked:
kkiddie
2 Solutions
 
mshogrenCommented:
As far as I knew and have tested, Domino forms on the web do submit using POST.  So I am not sure I understand exactly what you mean but here goes.  

If you need to change the form tag (to use "GET" or to change the ACTION attribute, you can put something like this at the top of the form in passthru HTML

</form>
<form action="action.url" method="GET">

There are likely to be problems with any javascript on the form which refers to the first empty form by name but that can be worked around in my experience.
0
 
kkiddieAuthor Commented:
Yes, sorry for my unclear question. It seems like what you suggest should work, but how do I simultaneously send an email which includes some of the data on the form if the form is directed to an external URL?

-KK
0
 
marilyngCommented:
Hi kkiddie,
You can send the email on the webquerysave event of the form.  YOu can either write it in javascript, or use javascript to call an agent to send the email.   The redirect you can write in a $$Return field on the form

Regards!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now