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

Describe session in php.

535


How come the code works, but does not for two-dimensional array of mine?

503


What is a php web application?

504


What is sql injection in php?

532


Explain include(), include_once, require() and require_once?

551






What are php libraries?

498


What is in php 7?

559


What does explode do in php?

558


Which function is used in php to check the data type of any variable?

518


What is php how it works?

539


What is the difference between public, protected and private?

476


Which is the best php framework for a beginner?

529


what is the use of include_once in php?

537


How is it possible to propagate a session id?

511


What is the use of trim function in php?

527