Home > Article > Web Front-end > HTML form value passing example is passed through get method
google.html The interface is as shown
The code is as shown: (relatively simple, it is an input input box and input submit button, pay attention to the type For submit, not button)
<title>Winbobo</title> <div> <form> <input> <input> </form> </div>
The code of google.php is as shown: ($_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)
<?php print "<pre class="brush:php;toolbar:false">"; print_r($_GET); print ""; ?>
The running result is as shown in the figure:
For more examples of HTML form value passing through get method, please pay attention to related articles. PHP Chinese website!