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

Explain about objects in PHP?

776


"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.

1745


Suppose your zend engine supports the mode Then how can you configure your php zend engine to support Mode ?

775


How to create database connection and query in php?

818


How do I escape data before storing it in the database?

775


How many data types are there in php?

857


What are the difference between overloading and overriding in oops?

781


Why php is used?

846


What is polymorphism php?

728


What is php addslashes?

775


How to write in a file in php?

743


how to track no of users logged in?

797


What is the tags in PHP is not a valid way to begin and end a PHP code block?

1025


What is difference between php and wordpress?

729


How be the result set of mysql handled in php?

899