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

Answer Posted / sri harsha

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what does $_files means?

551


What are the three parts of an http request?

566


What is the use of mysql_fetch_assoc in php?

504


Why many companies are switching their current business language to php? Where php basically used?

499


How can we know the total number of elements of Array?

593






Is age a variable in research?

478


Define metaphone()?

8289


What is use of header() function in php?

543


Is wordpress a php framework?

517


What is the best way to test the strpos() return value in php?

524


What is the difference between abstract class and interface in php?

518


What is strlen function in php?

512


Tell us how to redirect a page in php?

535


Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

505


What is the role of the .htaccess file in php?

543