Home > Backend Development > PHP Tutorial > Can I send a request to update a certain page in the project in PHP?

Can I send a request to update a certain page in the project in PHP?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-06 13:51:21
Original
876 people have browsed it

The project is in three-frame mode, top, middle, and left. The requirement is that after I execute a certain action, I will update the top header information. How to implement this?
For example: I insert a piece of data into the database in a PHP script, and then the insertion is successful and the top page is refreshed. Something like this

Reply content:

The project is in three-frame mode, top, middle, and left. The requirement is that after I execute a certain action, I will update the top header information. How to implement this?
For example: I insert a piece of data into the database in a PHP script, and then the insertion is successful and the top page is refreshed. Something like this

When performing an operation, use JS to send a request to the backend and return the data to modify the specified content

ajax or iframe

Use Websocket to connect permanently

Ajax can be implemented asynchronously. Every time the operation is successful, Ajax will go to the server to pull the top template and append it up

Related labels:
php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template