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 the difference between session_unregister() and session_unset()?
Will react hooks replace redux?
Why delimiter is used in mysql?
What are the features of php?
How do you pass a variable by value?
Tell me what sized websites have you worked on in the past?
What are the advantages of object-oriented programming in php?
What is different between software and app
What is composer used for?
Tell me what does $_env means?
What are the features of php 7?
Why is php used for web development?
What is the maximum size of a database in mysql?
What is empty () in php?
Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?