I-AM-OBODO Posted July 5, 2018 Share Posted July 5, 2018 Hi. Pls I have a form that contains countries. Let say i want to do something else if a country in among the countries in my list and something else if not included. how can i archive this simply without doing multiple ifs. eg direct listed countries to page A else direct to page B Thanks Quote Link to comment https://forums.phpfreaks.com/topic/307447-redirect-selection/ Share on other sites More sharing options...
benanamen Posted July 5, 2018 Share Posted July 5, 2018 Without more detail, in_array should work for you. 1 Quote Link to comment https://forums.phpfreaks.com/topic/307447-redirect-selection/#findComment-1559281 Share on other sites More sharing options...
I-AM-OBODO Posted July 11, 2018 Author Share Posted July 11, 2018 On 7/5/2018 at 10:29 PM, benanamen said: Without more detail, in_array should work for you. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/307447-redirect-selection/#findComment-1559553 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.