ASP ClassicLesson 33Free preview
ASP Forms
This lesson is part of ASP · All levels
Summary
HTML forms become the primary input source for Classic ASP pages, with values sent via the GET or POST method and then read by the Request object. The POST method is chosen for sensitive data such as passwords, while GET is suitable for search parameters. The enctype attribute needs to be set to multipart/form-data when a form includes file uploads.
Key points
- The POST form value is read as Request.Form, the GET value as Request.QueryString.
- Always validate the input back on the server before processing.
- The name attribute on the input becomes the key to delivering the value.
- Uploading files requires the multipart enctype/form-data.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.