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 is it possible to cast types in php?
What are the method available in form submitting?
Explain the difference between static and dynamic websites?
What is json php?
Name and explain five of the PHP error constants?
What is a PHP Filter?
How to invoke a user function?
What is echo in html?
Starting or restarting a computer is called
How can you send email in php?
Is empty in excel?
What are global variables in php?
Is it more secure to use cookies to trfer session ids?
How arrays are used in php?
What is the purpose of basename() function in PHP?