codeigniter - Missing Parameter in PHP $_POST Function -


I am using CodeIgniter, my PHP page via the $ _ POST request To pass some parameters, and I am reading PHP page

  $ foo = $ this-> Input-> Post ('myParam');  $ foo  will be specified if  myParam  parameter is present in the  $ _ POST  request < How do I check the code> myParam  if  myParam   $ _ POST  request 

The result of the first.

From that document:

I post "codeigniter input" blockquote>

  $ this-> Input-> Post ('some_data'); The  

function returns the FALSE (boolean) if the item you are trying to recover does not exist.

then you need to:

  if ($ foo === false) {// do something if it is not set}  

Comments