国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

php - changing browser behavior
扔個(gè)三星炸死你
扔個(gè)三星炸死你 2017-07-05 09:56:07
0
4
986

The client is a simple form, the file name is send.php

<form action="http://vps_ip/phplearn/do.php" method="post">
用戶(hù)名:  <input type="text" name="userName" size="12"/>
密碼:    <input type="text" name="PS" size="12"/>
<input type="submit" value="登錄">
</form>

Server-side program, file name do.php

<?php
$userName = $_POST["userName"];
$PS = $_POST["PS"];
echo "the name is:  ".$userName;
echo "<br>key word is:  ".$PS;
?>

Now open two web pages respectively
Client


Service-Terminal

After clicking on the client's login, the client's page will change to

Now, I want to do this: after the client clicks to log in, the client's web page remains unchanged, but the server's web page changes. Can this be done?

扔個(gè)三星炸死你
扔個(gè)三星炸死你

reply all(4)
過(guò)去多啦不再A夢(mèng)

Try using websocket, long connection

學(xué)霸

Although I don’t know what you want to do, I still recommend something to you

webscocket
習(xí)慣沉默

The client web page remains unchanged, submit the form data to the server using AJAX, and then the server returns the processing results.

為情所困

This is similar to instant messaging. The client sends the account password and the other end (server) obtains the sent information. (I don’t know if this is what you want)
If this is the case, it is best to use a long connection. You can try the webscocket or workman mentioned by the two above

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template