How many ways I can redirect a PHP page?

Answer Posted / deep narain singh

You Can Redirect PHP Page by folloeing method:
1- <script>location.replace("index.php");</script>
2-<script>window.href="index.php";</script>
3-header("Location:index.php");

Is This Answer Correct ?    20 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do http requests work?

496


Explain about PHP filter and why it should be used?

555


What are majic methords in php?

576


What is call by reference in php?

513


How to insert a line break in php string?

546






Explain the importance of the function htmlentities.

541


What are the benefits of using queries?

509


What is mysqli_fetch_array?

517


Where session is stored?

533


What is in a cookie?

551


What is whitespace in html?

524


What difference between require() and require_once()?

550


Is php required for wordpress?

506


How can we determine whether a variable is set?

523


What are the php variables?

531