How many ways I can redirect a PHP page?
Answer Posted / rakesh kumar nautiyal
Page redirect
Description
If you want a PHP redirect script that redirects visitors
from a page to a specific URL then this is it. It sends the
user from one web page to a different web page address. It
is a good alternative to using the meta tag http-equiv
option.
The code
<?php/** * Place in a blank PHP page */// Change to the URL
you want to redirect to$URL="http://www.page.com";header
("Location: $URL");?>
| Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
How to remove leading and trailing spaces from user input values?
What new features php7 has in store for us?
How can we display the output directly to the browser?
What distinguishes php from something like client side java script?
Is age interval or ordinal data?
What is the default session time in php?
Write a php script to get the largest key in an array?
Is salary a ratio or interval?
What is the basic syntax of Php?
Explain what does the unset() function means?
Which is a perfect example of runtime polymorphism?
Can we use onclick in submit button?
Is not null mysql?
What is a simple php method to make a cross domain data request?
Explain me what is the use of 'print' in php?