jerrygarciuh wrote:
an elegant 1
liner which does this lovely trick.
This is just my personal opinion, but since I started writing large
programs that have to be maintainable and understandable to myself and
others, I have really come to dislike 'elegant one liners'.
If I understood your problem correctly, I would simply write this:
(combining $_POST and $_GET in S_REQUEST):
if (isset($_REQUEST['ms']))
$memberState = $_REQUEST['ms'];
else
$memberState = 'Unapproved';
I'd rather have four lines which are immediately obvious than one line
which is a puzzle, however elegant it may be.
But to each his own, YMMV, etc.
JP
--
Sorry, <de*****@cauce.org> is a spam trap.
Real e-mail address unavailable. 5000+ spams per month.