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 |
Explain php parameterized functions.
Which function will you use to create an array?
What is mysql_real_escape_string used for?
What does accessing a class via :: means?
Is php is dying?
What does $_env means?
What is the use of get and post method in php?
hi, i have knowledge about PHP/MYSQL,i am fresher of M.Sc-IT 2009 pass out,any recruitment in PHP please let me know.my email id:nathiyasms@gmail.com
Write a program to find no of days between two dates in php?
How can I prevent sql-injection in php?
Any good PHP developer looking for change
What is the difference between myisam and innodb?