Once an HTML form is submitted, we have to read the client data on the server side to take an appropriate action. We will be covering this in this recipe.
Reading your first HTML form
Getting ready...
Since we have already created an HTML form in our previous recipe, we will just extend the recipe to read its field values.
How to do it...
- Install the github.com/gorilla/schema package using the go get command, as follows:
$ go get github.com/gorilla/schema
- Create html-form-read.go, where we will read an HTML form field after decoding it using the github.com/gorilla/schema...