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

How can I use single quotes in single quotes in php?

457


What is reference variable php?

498


What is csrf token and how it works?

523


What is binary safe function in php?

573


What is a base url?

505






How to get the http request in php?

574


Is php session id unique?

531


How to support multiple-page forms?

565


How do you destroy a particular or all Sessions?

576


What is the difference between get and post in php?

513


Which is the best web server?

530


What are the methods of array in java?

488


How to track no of user logged in?

631


Describe which programming language does php parallel to?

469


What is parent __construct ();?

539