php - get type form, data cannot be received
習慣沉默
習慣沉默 2017-05-16 13:07:25
0
3
651
<!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);
}
  
習慣沉默
習慣沉默

reply all(3)
Peter_Zhu

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']);
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template