Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Tell me how comfortable are you with writing html entirely by hand?

862


Tell me how to get the value of current session id?

882


Who developed php?

918


Explain Whitespace Characters?

989


Can we run php on tomcat server?

1000


What is csrf mvc?

958


What sized websites have you worked on in the past?

948


What is lamp in php?

903


What is the difference between query and question?

910


Which function is used to strip whitespace?

908


Is php dead 2019?

887


What are psrs? Choose 1 and briefly describe it?

1376


What is mysqli php?

951


What is difference between variable declaration and variable definition?

919


Is php class name case sensitive?

910