You are here: 2nd pair of eyes, simple ? « PHP Programming Language « IT news, forums, messages
2nd pair of eyes, simple ?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация