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
Is it possible to submit a form with a dedicated button?
How is php different from other languages?
What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
Can we embedded directly PHP code into XHTML document? State Whether True or False?
Is it easy to learn php?
Can you extend a final defined class?
Is gender a dependent variable?
Explain me what is the importance of "method" attribute in a html form?
What is mean tnq
What are the differences between mysqli_connect and mysqli_pconnect?
What are session variables in php?
How I can control asset documents without GR/IR?
Is php an api?
Which is variable cost?
What is the current stable version of php?