PHP through the header () function to implement the file download, the following code:
- <meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
- <title> Application Header () function implementation download-www.cxybl.com</title>
- <style type= "Text/css" >
- <!--
- Body {
- margin-left:00px;
- margin-top:0px;
- margin-right:0px;
- margin-bottom:0px;
- }
- a:link {
- Text-decoration:none;
- }
- a:visited {
- Text-decoration:none;
- }
- a:hover {
- Text-decoration:none;
- }
- a:active {
- Text-decoration:none;
- }
- . style1 {font-size:12px}
- -->
- </style>
- <body>
- <table width= "385" height= "185" border= "0" cellpadding= "0" cellspacing= "0" >
- <form name= "Form1" method= "Post" action= "index_ok.php" >
- <tr>
- <TD width= "height=" > </td>
- <TD width= "275" > </td>
- <TD width= "> </td>"
- </tr>
- <tr>
- <TD height= > </td>
- <TD align= "center" ><input type= "Submit" name= "Submit" value= "Agree" >
- <input type= "reset" name= "Submit2" value= "Disagree" ></td>
- <td> </td>
- </tr>
- <tr>
- <TD height= > </td>
- <td> </td>
- <td> </td>
- </tr>
- </form>
- </table>
- </body>
index_ok.php:
- <?php session_start ();
- if ($Submit = = "Consent") {
- Header ("Location:http://www.cxybl.com/templets/default/images/logo1.gif");}
- ?>