What are different ways to redirect from on page to other?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / lingeswari v.chandra
another method using javascript:
location.replace('url')
| Is This Answer Correct ? | 2 Yes | 0 No |
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 |
Answer / sri harsha
header("location: xxxx.php");--In PHP
location.href="www.yahoomail.com";---In javascript;
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mahesh
Using Php
header("Location: "test.php");
exit();
Using Javascript
location.href='test.php';
| Is This Answer Correct ? | 1 Yes | 0 No |
What is difference between rest and http?
How to send a cookie to the browser?
What is a query in php?
Which function will suitably replace 'x' if the size of a file needs to be checked? $Size=x(filename);
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 ?
Explain what is the difference between for and foreach?
What is lamp in php?
what are the differences between php and perl
What are php libraries?
Explain php explode() function.
How to get a random value from a php array?
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...