Reply to Re: help with posting conditional if statement

Your name:

Reply:


Posted by Erwin Moller on 05/04/07 16:33

Simon Stewart wrote:

> Art
>
> Try something like this.
>
> $holdchk= (strlen ($_POST['B1'])>0 and strlen($_POST['app_fname'])==0);
> $action= ($holdchk)? "some.php": "other.php";
> echo "<form method='POST' action='$action'>";
>
> avoid isset and empty
>

Why avoid isset?
I use that function in every script that receives clientinformation...
Couldn't life without it.

Personally I think your posted code is a bad example on how to solve it...
You need to read it twice and rethink it. Clear code is better and happens
to use isset().
Just my 2 cent of course...

Regards,
Erwin Moller

[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

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