github.com/gogf/gf@v1.16.9/.example/net/ghttp/server/form/form.html (about) 1 2 <html> 3 <head> 4 <title>form test</title> 5 </head> 6 <body> 7 <h1>form1</h1> 8 <form action="?" method="post" enctype="multipart/form-data"> 9 <p><input type="text" name="input1" value="1"/></p> 10 <p><input type="text" name="input2" value="2"/></p> 11 <p><input type="text" name="array1" value="3"/></p> 12 <p><input type="text" name="array1" value="4"/></p> 13 <p><input type="text" name="array2[]" value="5"/></p> 14 <p><input type="text" name="array2[]" value="6"/></p> 15 <p><input type="text" name="map[a]" value="7"/></p> 16 <p><input type="text" name="map[b]" value="8"/></p> 17 <p><input type="password" name="password1" value="9"/></p> 18 <input type="submit" value="Submit" /> 19 </form> 20 21 <h1>form2</h1> 22 <form action="?" method="post" enctype="application/x-www-form-urlencoded"> 23 <p><input type="text" name="input[a]" value="1"/></p> 24 <p><input type="text" name="input[b]" value="2"/></p> 25 <p><input type="text" name="array" value="3"/></p> 26 <p><input type="text" name="array" value="4"/></p> 27 <p><input type="password" name="password2" value="5"/></p> 28 <input type="submit" value="Submit" /> 29 </form> 30 </body>