Compare commits
2 Commits
formular_a
...
ea0fdee0e0
Author | SHA1 | Date | |
---|---|---|---|
ea0fdee0e0 | |||
61c895d53f |
6
main.go
6
main.go
@ -34,7 +34,7 @@ func main() {
|
||||
var b Briefing
|
||||
|
||||
mux := http.NewServeMux()
|
||||
i = 1
|
||||
i, j = 1, 1
|
||||
|
||||
mux.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir("static/"))))
|
||||
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
@ -51,7 +51,8 @@ func main() {
|
||||
b.Time = r.PostFormValue("time")
|
||||
b.State = r.PostFormValue("state")
|
||||
b.Location = r.PostFormValue("location")
|
||||
for j = 1; j <= i; j++ {
|
||||
|
||||
for ; j <= i; j++ {
|
||||
b.Participants = append(b.Participants, Participant{
|
||||
ID: j,
|
||||
Person: Person{
|
||||
@ -61,7 +62,6 @@ func main() {
|
||||
Company: r.PostFormValue(("participant-company-" + fmt.Sprint(j))),
|
||||
})
|
||||
}
|
||||
fmt.Println(b)
|
||||
})
|
||||
|
||||
log.Fatalln(http.ListenAndServe(":8080", mux))
|
||||
|
Reference in New Issue
Block a user