List out different arguments in PHP header function?
Answer Posted / rakesh kumar nautiyal
<?php
if ((isset($gender)) && ($gender == 'female')) {
header("Location:
http://allinterview.com/form/secret.php");
exit;
}
?>
<html><head><title>the inclusive page</title></head>
<body>
<h3>welcome!</h3>
Even men welcome to this page!
</body></html>
| Is This Answer Correct ? | 5 Yes | 9 No |
Post New Answer View All Answers
How do you clear environment variables?
What is php artisan tinker?
What does the function get_magic_quotes_gpc() means?
What is difference between web service and api?
Who is the father or inventor of php?
What is api used for?
What is data structure in php?
What is inheritance in php with example?
When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?
Explain the types of functions for Splitting String?
Why is used in php?
Tell me what is the difference between unset() and unlink()?
Can we set session value in javascript?
Do you know when sessions ends?
How can we destroy the cookie in php?