This is a user management form with an add user button. Every time I click it it adds two users and, yes, the handler in my Go code gets called twice.
Here is the stripped down page:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Users</title> </head> <body> <form action="/generalLedger" method="get"> <input name = "userID" value = "admin" hidden> <input name = "hashedPassword" value = "£¢¡" hidden> <input class="input-button" name="addUser" type="submit" value="Add User" id="addUser_btn"> </form> </body> </html>
On the server this is the request received:
/generalLedger?userID=admin&hashedPassword=%C2%A3%C2%A2%C2%A1&addUser=Add+User userID=admin hashedPassword=%C2%A3%C2%A2%C2%A1 addUser=Add+User
This request shows up in the log twice