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...


What are different ways to redirect from on page to other?

Answers were Sorted based on User's Feedback



What are different ways to redirect from on page to other?..

Answer / vishal desai

1). using form action property
2). using javascript ( window.location )
3). using header("Location: .......");
4). using
echo "<meta http-equiv='refresh' content='0; url=....'>";

Is This Answer Correct ?    12 Yes 0 No

What are different ways to redirect from on page to other?..

Answer / cpsarathi79

header("location: xxxx.php");

Is This Answer Correct ?    8 Yes 0 No

What are different ways to redirect from on page to other?..

Answer / jitendra jhariya

one is header(""); and second is with the help of java
script and third is by form action

Is This Answer Correct ?    6 Yes 1 No

What are different ways to redirect from on page to other?..

Answer / pramod

The above syntex will work fine iff

1)there is no blank line before this syntax
2)No echo or print commnad used before this syntax

Is This Answer Correct ?    4 Yes 1 No

What are different ways to redirect from on page to other?..

Answer / lingeswari v.chandra

another method using javascript:

location.replace('url')

Is This Answer Correct ?    2 Yes 0 No

What are different ways to redirect from on page to other?..

Answer / shaik abdul raheem

1.write top of the file ob_start();
2.write header("location:xxxx.php") where u need.
3.write bottom of the file ob_flush();

Is This Answer Correct ?    2 Yes 1 No

What are different ways to redirect from on page to other?..

Answer / guest

using
form action tag
javascript code

Is This Answer Correct ?    1 Yes 0 No

What are different ways to redirect from on page to other?..

Answer / sri harsha

header("location: xxxx.php");--In PHP
location.href="www.yahoomail.com";---In javascript;

Is This Answer Correct ?    1 Yes 0 No

What are different ways to redirect from on page to other?..

Answer / mahesh

Using Php
header("Location: "test.php");
exit();
Using Javascript
location.href='test.php';

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More PHP Interview Questions

What is difference between rest and http?

0 Answers  


How to send a cookie to the browser?

0 Answers  


What is a query in php?

0 Answers  


Which function will suitably replace 'x' if the size of a file needs to be checked? $Size=x(filename);

0 Answers  


I have written a source code in php but I do not know how to compile that and conduct it with a website please explain me the how to compile that ?

1 Answers  


Explain what is the difference between for and foreach?

0 Answers  


What is lamp in php?

0 Answers  


what are the differences between php and perl

0 Answers   TCS,


What are php libraries?

0 Answers  


Explain php explode() function.

0 Answers  


How to get a random value from a php array?

0 Answers  


when we submit any string in single inverted comma('abc') with get or post method,we will get exact string with single inverted comma('abc')by using $_REQUEST[]. But it is giving (\'abc\'). so anybody please help me to remove that slash,therefore i will get exact string...

2 Answers  


Categories