halben Posted September 16, 2013 Share Posted September 16, 2013 Hello Guys/Gals, I'm trying to get a drop down list name "SomeAccount" and get a value from the list which is "Partner." I don't this this is the right way to do it but can someone please help me? $someRole = $some_client -> getID($userId, array('SomeAccount' => 'Partner')); After assigning the variable, I want to check against a $_Post['role'] to see if $someRole == $_Post['role']. if ($someRole == $_Post['role'] == 'subscriber') { update_something(); } Thanks, Halben Quote Link to comment https://forums.phpfreaks.com/topic/282199-grab-the-value-from-the-dropdown-list-and-check-against/ Share on other sites More sharing options...
Barand Posted September 16, 2013 Share Posted September 16, 2013 (edited) perhaps if ($someRole == $_POST['role']) && ($someRole == 'subscriber') { update_something(); } $_POST is not same as $_Post Edited September 16, 2013 by Barand Quote Link to comment https://forums.phpfreaks.com/topic/282199-grab-the-value-from-the-dropdown-list-and-check-against/#findComment-1449752 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.