How many ways I can redirect a PHP page?
Answer Posted / rajesh bhujbal
1. By using header function as below:
<?php
header('Location: http://www.example.com/');
?>
2. By useing ACTION property of form tag of page:
<form action = “POST” method = “processform.php” >
</form>
3. By using javascript as below:
1- <script>location.replace("index.php");</script>
2-<script>window.href="index.php";</script>
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How to find a specific value in an array?
What is php session start?
How we can retrieve the data in the result set of mysql using php?
How to remove blank spaces from the string?
What is a php object?
What does php mean?
How to get the position of the character in a string in php?
what is benefit of magento?
What does trim () do in javascript?
How to set cookies?
What are the Advantages and Application Areas of PHP?
How to block direct directory access in PHP?
What is difference between compile time and run time polymorphism?
What is mysql_fetch_array?
What is an operator in php?