WP TutorialLesson 7Free preview
WebPages Forms
This lesson is part of ASP · All levels
Summary
Forms are the primary way to receive user input, and Web Pages provide a simple way to render fields and read sent values. Form data can be taken via Request.Form or Request.QueryString, and then validated before being processed. Good validation prevents empty data, wrong formatting, or malicious input from entering the system.
Key points
- The form uses the POST method for sensitive data and the GET method for search parameters.
- The input value is read with Request.Form["Field name"] on the server side.
- Validation should be done again on the server even if there is already a validation in the browser.
- HTML elements are organized with the tags <form>, <input>, <select>, and <textarea>.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.