Re: Re: [PHP-DB] Re: radio form submission

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Call me backwards, but I prefer to keep my statements simple.  I would first 
obtain the POST value before trying to pull up an array element.

$stype=$_POST[''store_type'];
if (!isset($stype))
    (handle missing radio button)
else
    $st_name=$choices[$stype];

for me (and the next guy who has to look at the code) this is simpler to 
follow, IMHO. 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux