Update 04.2.md
This commit is contained in:
@@ -96,7 +96,7 @@ If we want to know whether the user is male or female, we may use a radio button
|
|||||||
```
|
```
|
||||||
And we use the following code to validate the input:
|
And we use the following code to validate the input:
|
||||||
```Go
|
```Go
|
||||||
slice:=[]int{1,2}
|
slice:=[]string{"1","2"}
|
||||||
|
|
||||||
for _, v := range slice {
|
for _, v := range slice {
|
||||||
if v == r.Form.Get("gender") {
|
if v == r.Form.Get("gender") {
|
||||||
|
|||||||
Reference in New Issue
Block a user