I have created an ASP.NET Core application and have a checkout page that needs to post the HTML form to a PHP file.
The problem is that model binding will post back to the Controller - Action that served the page. Is there a way to post an HTML form to a PHP file, for processing, from ASP.NET Core page?
The Form looks like this:
<form action="processor.php" method="post">
</form>
Serviced by:
Controller: Store
Action: Checkout
As you may know, the model binder will post back to the Store Controller but will throw an exception as it expects to find an Action named processor.php which does not exist.
Is there a workaround to this?
I want to process the posted data in the PHP file.