How do we use the specific content we are explaining to you today?Here is a script called calling.php:
- "-//W3C//DTD HTML 4.0 transitional//en"
- "Http://www.w3.org/TR/html4/loose.dtd" >
- < HTML >
- < Head >
- < title > Calling page Example title>
- Head >
- < Body >
- < a href="action.php">clickhere! a>
- Body >
- HTML >
When the user clicks on the connection above, the PHP function header () goes to call action.php. Here is the source code for action.php:
- Php
- Database Features
- redirect
- Header ("Location: $HTTP _referer");
- Exit
- ?>
Here are two common mistakes to remind:
Call the PHP function header () to include an exit statement to stop the script, or the subsequent script may be output before the header is sent.
A common error with the header () function is:
Warning:cannot Add header information-headers already sent ...
The PHP function header () can only be called before the HTML output, so you need to check for empty lines, spaces, and so on that may exist before PHP.
http://www.bkjia.com/PHPjc/446369.html www.bkjia.com true http://www.bkjia.com/PHPjc/446369.html techarticle How to use the specific content we are explaining to you today is a script called calling.php:! Doctypehtmlpublic "-//w3c//dtdhtml4.0transitional//en" "http://www.w3.org/...