|
Posted by one man army on 01/21/06 10:38
I read a chapter of a book. I tried this. Its not doing what I thought
it should. Why?
<?
$zipRaw = $_GET['zipRaw_name'];
if ( !empty($zipRaw) ) {
$valid = $zValid = checkLength($zipRaw, 1, 5);
if ($valid) {
header( "Location:http://www.yahoo.com");
exit;
} else {
echo( "<html><head></head><body> zipRaw = ");
echo( $zipRaw );
echo( " <br></body>" );
}
}
?>
I get
zipRaw = "); echo( $zipRaw ); echo( "
" ); } } ?>
in the Browser window. Same if I change echo to print().
And header() never works, ever, even if I just add it as the first line,
no conditional tests. call me clueless. its late. TIA
Navigation:
[Reply to this message]
|