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
What's the output of the ucwords function in this example?
What is the $_ server php_self variable?
Explain scalar type declarations in php7?
What is csrf token and why it is required?
What is the use of $_request variable?
Write a hello world program using variable?
What is the use of get and post method in php?
How to read one character from a file?
What is "print" in php?
How is csrf token generated?
Explain the importance of the function htmlentities.
How can we enable error reporting in php?
What are the differences between php constants and variables?
How can I use single quotes in single quotes in php?
what are the differences between php and perl