I need to add couple of php page as from action like,
<form action=“one.php”, “two.php” method=“POST”>
The code above is not working, how can i use more than one form action url?
HTML doesn’t support this. What did you expect the resulting page to be? Use JS if you want to query multiple endpoints.
I just want pass customer input field to my PHP function arguments in run time, actually the script working for give response to customer while fill-up the form, if two drop down selected the value will auto response, here how can i pass my couple of fields (Zip/Postal Code, Country ) as a arguments to PHP function.
my code :
Input Form : https://paste.ofcode.org/y3YKYtZHaVwkfTpmNQhsfL
PHP : https://paste.ofcode.org/34MmNpxrTDbGxUfXxvKCuSP
FYI : Now i entered predefined value for calculation shipping.
Expected Solution : The value zip_postal_code, country get from customer input form pass to the PHP function arguments as,
$results = getShippingEstimate(‘14419’,‘1’,“IN”,“642001”);
isn’t that the same you are asking for in the other topic?
Not only is that not how html works, that isn’t how Magento works. Magento is a solid OOP platform, and you hacking at it is going to make it more complicated and break things later. You need to just look at the shipping modules that are already available on the platform, I know that there are several that allow live connections to shipping providers for costs.