<!DOCTYPE html> <html> <head> <title></title> </head> <body> <form method="get" action=""> <input> <input> <input type="submit" value="tijiao"> </form> </body> </html> <?php if($_GET){ var_dump($_GET); }
Brother, your form doesn’t even have a name attribute, so you definitely won’t be able to receive data
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <form method="get" action=""> <input type="text" name="vi"> <input type="submit" value="tijiao"> </form> </body> </html> <?php if($_GET){ var_dump($_GET); }
<input type="submit" value="tijiao" **name="XX"**> var_dump($_GET['XX']);
Brother, your form doesn’t even have a name attribute, so you definitely won’t be able to receive data