This commit is contained in:
Javier Velilla
2017-02-10 18:32:48 -03:00
committed by GitHub
parent 828c75f0c2
commit 6596959724

View File

@@ -17,17 +17,17 @@ Nav: [Workbook](../workbook.md) :: [Basic Concepts](../basics/basics.md) :: [Han
- [Examples](#examples) - [Examples](#examples)
An HTML Form can handle GET and POST requests. An HTML Form can handle `GET` and `POST` requests.
When we use a form with method GET, the data is attached at the end of the url for example: When we use a form with method `GET`, the data is attached at the end of the url for example:
>http://wwww.example.com?key1=value1&...keyn=valuen >http://wwww.example.com?key1=value1&...keyn=valuen
If we use the method POST, the data is sent to the server in a different line. If we use the method `POST`, the data is sent to the server in a different line.
Extracting form data from the server side is one of the most tedious parts. If you do it by hand, you will need Extracting form data from the server side is one of the most tedious parts. If you do it by hand, you will need
to parse the input, you'll have to URL-decode the value. to parse the input, you'll have to URL-decode the value.
Here we will show you how to read input submitted by a user using a Form (GET and POST). Here we will show you how to read input submitted by a user using a Form (`GET` and `POST`).
* How to handle missing values: * How to handle missing values:
* client side validattion, server side validations, set default if it's a valid option. * client side validattion, server side validations, set default if it's a valid option.
* How to populate Eiffel objects from the request data. * How to populate Eiffel objects from the request data.