Method 1: Submit via the submit button <!DOCTYPE html> <html> <head> <title>Submit via the submit button</title> <meta charset="UTF-8"/> </head> <body> <form action="" method="get" id="form1"> <input type="text" name="username"></input> <input type="submit" value="Submit" /> </form> </body> </html> Method 2: Submit via a normal button <!DOCTYPE html> <html> <head> <title>Submit via a regular button</title> <meta charset="UTF-8"/> </head> <body> <form action="" method="get" id="form1"> <input type="text" name="username"></input> <input type="button" value="ok" name="sb" onclick="submit1();"> </form> <script type="text/javascript"> function submit1() { var form1 = document.getElementById("form1"); form1.action = " bjpowernode.html"; form1.submit(); } </script> </body> </html> Method 3: Submit via hyperlink <!DOCTYPE html> <html> <head> <title>Submit via hyperlink</title> <meta charset="UTF-8"/> </head> <body> <a href="bjpowernode.html?username=张三">Submit via hyperlink</a> </body> </html> |
<<: How to retrieve password for mysql 8.0.22 on Mac
>>: Vue implements websocket customer service chat function
html <div > <button type="button&qu...
Table of contents 1. Insert the queried results 2...
The mysql connection must first be initialized th...
They are all web page templates from the foreign ...
Function: data display, table application scenari...
Pre-installation work: Make sure vmware workstati...
When vue2 converts timestamps, it generally uses ...
Table of contents 1. What is SVN 2. Svn server an...
I encountered a very strange problem today. Look a...
SpringBoot is like a giant python, slowly winding...
Table of contents v-model .sync The difference in...
1. Why set maxPostSize? The tomcat container has ...
MySQL error: Parameter index out of range (1 >...
1. Data Deduplication In daily work, there may be...
usemap is an attribute of the <img> tag, use...