You are here: Re: how to tell if a form has been posted « All PHP « IT news, forums, messages
Re: how to tell if a form has been posted

Posted by Rik on 10/13/83 11:29

Greg wrote:
>> Or check specifically:
>> if($_POST['action'] == 'submit'){
>> ## Do whatever
>> }
>>
>
> If you did it this way, wouldn't this value return as true even if
> the form was submitted blank?

Yep, inputvalidation is another thing.
To check if something's left blank:
if (!$_POST['tagname'] ){}

Grtz,

Rik

 

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

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