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

Tell us why did you choose this particular career path?

701


What is user defined function in php?

746


Why use php artisan serve?

683


What is php variable?

730


How do you define a constant in php?

776


Can we use php variable in javascript?

736


What is local variable in php?

713


How to create a web form?

754


List some features of php that are deprecated in php

680


Tell me are parent constructors called implicitly inside a class constructor?

734


Explain array_uintersect()?

770


What is the difference between Session and Cookie?

783


Which method removes the last element from the end of an array?

702


Is empty function c++?

704


Where is session id stored?

709