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

What is faster?

1012


Is php better than java?

981


What is active record in php?

902


Explain how to run the interactive php shell from the command line interface?

1066


What is sticky form in php?

909


What is meant by PEAR in PHP?

975


What is crypt () in php?

934


What is the best php version for wordpress?

1110


What is a controller in programming?

1058


What is the difference between php and java?

992


Which is better php praogramming or cad/cam scope wise and also salaray wise?

2017


Tell me what kind of things have you done on the social side?

971


Is nan in php?

1043


How do I see how many pages per session in google analytics?

1006


Is key in array php?

1007