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]
|