Home > Article > Backend Development > PHP Learning WampSever
The content of this article is about WampSever for PHP learning. Now I share it with you. Friends in need can refer to it
WampSever is something similar to the server side.
You can test it locally or access your webpage from the outside.
The key point is to have a complete set.
Installation (If you install it on a USB flash drive, I won’t bother you, just feel free to do whatever you want)
Now let me make up for the last time The picture
<?php if(!empty($_POST['sub'])) { $a=$_POST['A']; $b=$_POST['B']; /*读取上面传回来的值*/ echo $a+$b; /*$是一个定义符号,相当于C++的int P 的 long int等。但是php没有这么麻烦,$是软定义,就是他会自动识别你的类型*/ /*echo是一个函数,是输出啦,你试试cmd里面的echo看看,很像吧。*/ } ?> <form action="log.php" method="post"> A:<input type="text" name="A"><br> B:<input type="text" name="B"><br> <input type="submit" name="sub" value="提交按钮"><br> </form>
is this. It’s better to show you this picture.
If the WampSever school computer room cannot write, just use a virtual machine to demonstrate it.
In fact, the previous chapter just showed you what PHP is like and then you can get started with it.
I will introduce this now
<form action="log.php(输入后的值返回去哪一个代码)" method="post"> A:<input type="text(文本框)" name="A(名字)"><br> B:<input type="text" name="B"><br> <input type="submit" name="sub" value="提交按钮(显示)"><br></form>
Very good, and then ~ let me think about it ~
Very good WampSever is almost the same.
I just continue what I didn’t finish last time.
Related recommendations:
PHP Learning PHP Software Configuration
The above is the detailed content of PHP Learning WampSever. For more information, please follow other related articles on the PHP Chinese website!