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
Tell me how comfortable are you with writing html entirely by hand?
Tell me how to get the value of current session id?
Who developed php?
Explain Whitespace Characters?
Can we run php on tomcat server?
What is csrf mvc?
What sized websites have you worked on in the past?
What is lamp in php?
What is the difference between query and question?
Which function is used to strip whitespace?
Is php dead 2019?
What are psrs? Choose 1 and briefly describe it?
What is mysqli php?
What is difference between variable declaration and variable definition?
Is php class name case sensitive?