Reply to Re: checking if a cell is empty

Your name:

Reply:


Posted by Alvaro G Vicario on 05/23/05 12:42

*** Ashok wrote/escribió (Mon, 23 May 2005 13:36:08 +0400):
> What I am doing wrong in the script ( $_POST['helper1_pos'] gets value from
> the form). It shows error even if the cell is empty.
>
> if (!is_null($_POST['helper1_pos'])) {
> echo "Sorry! Helper 1 position already volunteered.";
> exit;
> }

PHP does not set to NULL post variables when they're empty. You can merely
check if they're empty strings (because, in the end, all form fields are
sent as strings).


--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--

[Back to original 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

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