Welcome Guest, Not a member yet? Register   Sign In
GET function does not work.
#2

(This post was last modified: 08-14-2018, 04:16 PM by php_rocs.)

@HarrysR,

Your 1st condition could return null and still execute. Maybe what you want is...
if( !is_null($this->input->get('petStatus')) || !is_null($this->input->get('petType')) )
or you can check to see if it is set...
if(isset($this->input->get('petStatus')) || isset($this->input->get('petType')) )


Also, you could just output the input object and view it's contents.

As for your second question it doesn't matter what order the variables are in as long as you refer to them by their get id it will always be correct.
Reply


Messages In This Thread
GET function does not work. - by HarrysR - 08-14-2018, 02:21 PM
RE: GET function does not work. - by php_rocs - 08-14-2018, 04:14 PM
RE: GET function does not work. - by HarrysR - 08-14-2018, 05:40 PM
RE: GET function does not work. - by php_rocs - 08-15-2018, 04:47 AM
RE: GET function does not work. - by HarrysR - 08-15-2018, 08:58 AM
RE: GET function does not work. - by php_rocs - 08-15-2018, 09:10 AM
RE: GET function does not work. - by HarrysR - 08-15-2018, 09:43 AM
RE: GET function does not work. - by php_rocs - 08-15-2018, 10:25 AM
RE: GET function does not work. - by HarrysR - 08-15-2018, 11:28 AM
RE: GET function does not work. - by HarrysR - 08-15-2018, 12:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB