Welcome Guest, Not a member yet? Register   Sign In
PHP strpos
#1

[eluser]frist44[/eluser]
I'm trying to test if the string 'login' or 'join' is in my URL and if so, do set a session variable.

For just one, I have:

if (strpos(cur_url(), 'login') === FALSE) $this->set_prev_url();

however, if I add an "or" condition to put 'join', it'll write the session even when it's on the login, because the 'join' condition will be satisfied. How could I pass in a few strings and test the same condition?


Messages In This Thread
PHP strpos - by El Forum - 01-01-2010, 12:06 PM
PHP strpos - by El Forum - 01-01-2010, 01:15 PM
PHP strpos - by El Forum - 01-01-2010, 01:22 PM
PHP strpos - by El Forum - 01-01-2010, 01:33 PM
PHP strpos - by El Forum - 01-01-2010, 01:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB