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

How can I use single quotes in single quotes in php?

930


What are php data types?

1033


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

981


Which is not a file-related function in php?

1097


What is difference between put and post method in http?

1091


How do we get the current session id?

1059


Which software is best for php?

1053


What is the difference between array_merge() and array_merge_recursive() in php?

1169


Differentiate between php5 and php7?

1119


Tell me what's the difference between include and require?

1061


Which function will you use to create an array?

1019


How long is csrf token?

975


Can I learn php in a month?

1092


What is a php object?

993


Tell me how can I display text with a php script?

1025