php中request、post和get的使用

2024-10-13 12:15:26

1、打开php的编辑器,写上这个程序的注释内容。

php中request、post和get的使用

3、然后新建一个表单。<form action="jieshou.php" method="post"> tireqty:<input type="number" min=1 max=10 name="tireqty" /><br/> oilqty:<input type="number" min=1 max=10 name="oilqty" /><br/> sparkqty:<input type="number" min=1 max=10 name="sparkqty" /><br/> address:<input type="text" name="address" /><br/> <input type="submit" name="submit" /><br/> </form>

php中request、post和get的使用

5、post的使用。$qingqiu2=$_POST['oilqty'];

php中request、post和get的使用

7、最后将这些结果输出来。echo $孥恶膈茯qingqiu1."&nbsp;&nbsp;".$qingqiu2."&nbsp;&nbsp;".$qingqiu3;

php中request、post和get的使用
猜你喜欢