How many ways I can redirect a PHP page?

Answer Posted / deep narain singh

You Can Redirect PHP Page by folloeing method:
1- <script>location.replace("index.php");</script>
2-<script>window.href="index.php";</script>
3-header("Location:index.php");

Is This Answer Correct ?    20 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what is the differences between $a != $B and $a !== $B?

697


What is the method to execute a php script from the command line?

779


Define urlencode() and urldecode() used in php?

804


Explain about looping in PHP?

827


Why do we use session?

729


Do you know what is the function func_num_args() used for?

759


What is polymorphism in php?

717


What are magic methods?

722


What does csrf token mismatch mean?

890


Do loops php?

745


How to implement a class named dragonball. This class must have an attribute named ballcount (which starts from 0) and a method ifoundaball. When ifoundaball is called, ballcount is increased by one. If the value of ballcount is equal to seven, then the message you can ask your wish is printed, and ballcount is reset to 0. How would you implement this class?

853


What is the difference between single quoted string and double quoted string?

729


What is mysql_fetch_array?

718


What are global variables in php?

695


Explain the types of string comparision function in PHP

712