Reputation: 27
How to Post Form in View Folder of my Custom Theme .The Senerio is I want to Post my Custom Form data.the form is in footer view of my Custom Theme ..So i had to post the data to Controller then save it into db but my question is how to Post Form data form theme view to my controller .The Controller resides in my Custom Module
Upvotes: 1
Views: 611
Reputation: 3110
In Orchard, there is a default route that uses the module name as the area. So you should be able to post to your custom controller using a url like this: /ModuleName/ControllerName/Method
So without using the html form helpers, it would be something like this...
<form action='/ModuleName/ControllerName/Action' method='POST'>
<input name="someValue" type="text" />
<input type="submit" value="Submit" />
</form>
Upvotes: 1