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
What is faster?
Is php better than java?
What is active record in php?
Explain how to run the interactive php shell from the command line interface?
What is sticky form in php?
What is meant by PEAR in PHP?
What is crypt () in php?
What is the best php version for wordpress?
What is a controller in programming?
What is the difference between php and java?
Which is better php praogramming or cad/cam scope wise and also salaray wise?
Tell me what kind of things have you done on the social side?
Is nan in php?
How do I see how many pages per session in google analytics?
Is key in array php?