let say I have an url like this
http://www.domain.com/myscript.php?p1=xyz&p2=10&p3=ghj
Now i want to update p2=100
and reload the page using php
here parameters can be unlimited (p1,p2,...pn)
, and we can update any param and reload the page.
Try below codes:
OR
Fairly simply, you can do this
Here is what I use when I want to change 1
$var
value and then redirect.This takes the url (
$_SERVER['REQUEST_URI']
), removes the desired values ($getNames
) [which can be one or more values], and rebuilds the url. It can be used like-Reload your page you just have to setup your variables the way you want it in the URL field
If you want to reload page with desired parameters use JS
Following script might help you
Now if you want to reload the page after a specific amount of time interval then you can use the following meta tag
Njoy Coding. :)
The question is kind of vague, but assuming you want to reload from the client side using javascript: