Form data is the collection of named values submitted by an HTML form. In ASP.NET Core MVC, a controller can read it directly through Request.Form, process each value, and pass results to another request with TempData. section 27.2.1
A basic form-processing flow is:
- Decorate the receiving action with HttpPost and iterate through Request.Form.Keys to access submitted names and values. section 27.2.1
- Treat each form value as a string array; join multiple values when storing a simple representation in TempData. section 27.2.1
A submitted product name
Requesting /controllers/form displays a form with a Name input. Submitting a value sends a POST request to /controllers/form/submitform; the controller stores the value in TempData, redirects to Results, and displays it in a table.


