Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: If statement won't work!


Message #1 by emmet.mccarthy@w... on Fri, 18 May 2001 12:24:30 +0200
I think it sets the variable to "none" (hence your 4 chars).

You can check this by echoing out your variable.

Chris.

>Hi again all,
>this code solved my problem
>
>if(strlen($bild1) > 4)
>{
>     ...
>}
>
>Obviously an empty field has a string length of 4 when sent in the 
>header.Therefore it's never empty. Why is that
>anyone know??


  Return to Index