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$ foo
will be specified ifmyParam
parameter is present in the$ _ POST
request < How do I check the code> myParammyParam
$ _ 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
Post a Comment