JS code: < script>】">
php set the method to turn off page refresh: first use the [location.reload()] function; then enter the html code [JS code:
##php sets the method to turn off page refresh:
1. In actual application, when refreshing the page, we usually use:location.reload()or
history.go(0)to do it.
document.location.href='当前页面文件名称'";
JS代码:
##5, function dlink(){document.location.href ="Current page file name";}
6. We need to reload the page, which means we expect the page to be reloaded on the server. Create, we expect is Not IsPostback. Here,
location.replace()can complete this task. The replaced page is regenerated on the server every time.
7. When the data processing page is accessed for the last time,
$_POST['title'],$_POST['num]should be empty values. So if you add a judgment, it must have a specific value, and then perform SQL operations.
PHP programming from entry to proficiency
The above is the detailed content of How to set up to turn off page refresh in php?. For more information, please follow other related articles on the PHP Chinese website!