The google.html interface is as shown in the figure![]() The code is as shown in the figure: (relatively simple, just an input input box and an input submit button. Note that type is submit, not button) Copy code The code is as follows:<html> <head> <title>Winbobo</title> </head> <body> <div align="center"> <form action="google.php" method="get"> <input name="q" type="text"/> </br> <input name="btnSearch" type="submit" value="Search" /> </form> </div> </body> </html> The code of google.php is as follows: ($_GET is used to obtain the data passed by the form through the get method; $_POST is used to obtain the data passed by the form through the post method) Copy code The code is as follows:<?php print "<pre>"; print_r($_GET); print "</pre>"; ?> The running results are shown in the figure: ![]() |
<<: Five guidelines to help you write maintainable CSS code
>>: MySQL date and time addition and subtraction sample code
This article example shares the specific code of ...
Table of contents Defining the HTML structure Inp...
For example, there is an input box <el-input r...
Table of contents Initialize computed Dependency ...
No gaps on both sides, gaps between each column w...
Table of contents 1. Project requirements 2. Docu...
It is almost a standard feature for websites nowa...
Table of contents 1. Build the operating environm...
Table of contents Manual deployment 1. Create a s...
1. Install mysql: udo apt-get install mysql-serve...
This article uses an example to illustrate the ex...
Preface In the development of small programs, we ...
Introduction to Docker Docker is an open source c...
When we install and configure the server LNPM env...
1. Solution to the problem that the page is blank...