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

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]


Удаленная работа для программистов  •  Как заработать на 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

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