Question About Submiting a form

Hi Guys,

I am building a shopping cart with Dreamweaver. I wonder if there is a way I can, using one submit button in one action to submit from a form to 2 different places e.g a database and another page.

Thank you.

Umm no…merge your two page into one.

Let me explain a bit further.

I want to submit certain values to a table in the database and also submit the same values in the same action to an external application to process. Like me saving an order into the database table and also sending it to a payment application.

Hi

You would need to send it to a file first that processes the form and extracts the variables. You would then use these variables to achieve any other aims, be it store in a database or send somewhere else. You can only specify one action.

As has been said, use one form handler to do the two tasks.

As @RichardAskew says extract your variables and update your database and then, use send those variables onto your second process.

if that is a process on another server (via an API?) then perhaps use cURL to POST or GET the vars to your external process.

You would have to explain how you normally call that “second process”.