How many ways I can redirect a PHP page?

Answer Posted / laxmikant

1- <script>location.replace("index.php");</script>
2-<script>window.href="index.php";</script>
3-header("Location:index.php");
4-<meta http-equiv="refresh" content="5; url=newurl.html">

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which function(s) in PHP computes the difference of arrays?

580


How can you get web browser’s details using PHP?

522


What is difference between mysqli and mysql?

536


What are the methods to submit form in php?

529


How can I learn php fast?

554






What is scope of variable in php?

579


How to protect special characters in query string?

535


How is it possible to parse a configuration file?

509


Why is php so popular?

519


What is whitespace in html?

530


What are the features of php?

556


How to create a mysql connection?

537


What are the main error types in php?

521


What is default session time in php?

520


What is use of header() function in php? What the limitation of header()?

477