Solution to combine two submit buttons.. doing two different things from the same input

Posted by zac on Stack Overflow See other posts from Stack Overflow or by zac
Published on 2010-04-01T17:31:24Z Indexed on 2010/04/01 17:33 UTC
Read the original article Hit count: 227

Filed under:

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?

© Stack Overflow or respective owner

Related posts about forms