Solution to combine two submit buttons.. doing two different things from the same input
- by zac
I am trying to figure out how to combine two different forms, both require the same input but they do two different things. One form sends a request to the ecommerce platform to get the order status, and another form takes the same order number and returns a tracking code from USP or USPS. I am looking for some guidance on how I could combine these two actions.. one is currently using the POST method and the other GET. Here is an example
.. so one is
This one runs a validation script to confirm the order number is valid and then returns the order info if it is
the second form is sending a get request to an asp file that is generating the proper tracking numbers.
Can someone please point me to how I could begin to tackle this?