Re: Re: radio form submission

From: Date: Fri, 24 Jun 2011 19:20:21 +0000
Subject: Re: Re: radio form submission
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-313711@lists.php.net to get a copy of this message
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.

« previous php.general (#313711) next »