Tags
Asked 2 years ago
13 Jul 2021
Views 191
Domenic

Domenic posted

How redirect URL in PHP ?

How redirect URL in PHP ?
python

python
answered Jul 18 '21 00:00

use header function to redirect the URL in PHP

header("location:index.php");

above function will redirect to index.php

duglus

duglus
answered Jul 18 '21 00:00

javascript is better option to redirect by window.location or document.location

 window.location="anotherpage.php"


it will redirect to anotherpage.php
or


 document.location="anotherphppage.php"



it will redirect to anotherphppage.php
Post Answer