|
Posted by Jerry Stuckle on 01/21/06 14:37
one man army wrote:
> 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
Maybe short tags is turned off. Try using
<?php
at the start instead.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|