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');if$ foowill be specified ifmyParamparameter is present in the$ _ POSTrequest < How do I check the code> myParammyParam$ _ POSTrequest
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
Post a Comment