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 to create an array of a group of items inside an html form?

567


Explain what is the difference between session and cookie?

534


How does session work in php?

527


How to read a file in php?

520


What PHP stands for?

563






Hello Friends,I am seeking for a job in php having 9 months. exp.Please suggest any company openings.

1699


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

451


Tell me how do I check if a given variable is empty?

531


What is array function in javascript?

507


Does https prevent csrf?

510


Explain how to run the interactive php shell from the command line interface?

543


What does csrf token mean?

502


Does php has a future?

487


What is the name of scripting engine in php?

675


Who is the father of php and what is the current version of php and mysql?

683