Home >Backend Development >PHP Tutorial >PHP Learning WampSever

PHP Learning WampSever

不言
不言forward
2018-04-09 11:04:192824browse

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)

PHP Learning WampSever

Now let me make up for the last time The picture

<?php
    if(!empty($_POST[&#39;sub&#39;]))
    {
        $a=$_POST[&#39;A&#39;];
        $b=$_POST[&#39;B&#39;];
        /*读取上面传回来的值*/
        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>

PHP Learning WampSever

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

PHP Learning Beginner PHP

The above is the detailed content of PHP Learning WampSever. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete