Welcome Guest, Not a member yet? Register   Sign In
isset: without or with?
#5

[eluser]Kenan[/eluser]
[quote author="jonez" date="1404687947"]If you want to check and validate specific keys I usually do this;
Code:
$data = $this->input->post( );
if ( !is_array( $data ) ) $data = array( );

if ( array_key_exists( 'q', $data ) ) {
    //clean
}
[/quote]

thanks for answer, good idea but the code will be more, because i must check a lot of keys of post data, let me wait for the other answers, if there is no other solution, i will use ur variant Smile


Messages In This Thread
isset: without or with? - by El Forum - 07-06-2014, 09:01 AM
isset: without or with? - by El Forum - 07-06-2014, 09:30 AM
isset: without or with? - by El Forum - 07-06-2014, 09:46 AM
isset: without or with? - by El Forum - 07-06-2014, 04:05 PM
isset: without or with? - by El Forum - 07-06-2014, 11:37 PM
isset: without or with? - by El Forum - 07-07-2014, 05:01 AM
isset: without or with? - by El Forum - 07-07-2014, 05:09 AM
isset: without or with? - by El Forum - 07-07-2014, 05:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB