My host doesn't use buffering so I placed the form validation (php) ahead of
the html like this:
<?php
if(isset($_POST['dn])) {
<do the validation processing>
if(file_exists( $fn)) {
header("Locatio n: $fn"); <---Bombs
}
}
include('./dlheader.inc'); // this provides the <HEAD> html script
?>
<form name="form1" method="post" action=<?php echo $_SERVER['PHP_SELF']; ?>"
......
The script works good on my machine with Apache/PHP, but on the host which
uses Apache/PHP, it states that the headers have already been sent (when it
gets to <---Bombs header). I can't understand it. Any help on this would
certainly be appreciated.
the html like this:
<?php
if(isset($_POST['dn])) {
<do the validation processing>
if(file_exists( $fn)) {
header("Locatio n: $fn"); <---Bombs
}
}
include('./dlheader.inc'); // this provides the <HEAD> html script
?>
<form name="form1" method="post" action=<?php echo $_SERVER['PHP_SELF']; ?>"
......
The script works good on my machine with Apache/PHP, but on the host which
uses Apache/PHP, it states that the headers have already been sent (when it
gets to <---Bombs header). I can't understand it. Any help on this would
certainly be appreciated.
Comment