Tim Streater
2014-03-22 23:37:00 UTC
$str = "fcc: " . $PTR_fcc;
Now, upon examination it appears that I have an instance where $str ends up
fcc: undefined
My question is, under what conditions can a variable be set by the PHP system
to the string "undefined"? Would this require that my ajax call in the
... &PTR_fcc=undefined âŠ
Not explicit as such, but that is whatâs happening. Javascript will use theNow, upon examination it appears that I have an instance where $str ends up
fcc: undefined
My question is, under what conditions can a variable be set by the PHP system
to the string "undefined"? Would this require that my ajax call in the
... &PTR_fcc=undefined âŠ
string "undefined" whenever an undefined variable is concatenated on to a
string.
... &PTR_fcc=&myvar=27 ...
What does that mean in my PHP script when I then do:
$PTR_fcc = isset($_POST['PTR_fcc'])==true ? $_POST['PTR_fcc'] : 0;
i.e. what value does $_POST['PTR_fcc'] have?
--
Cheers -- Tim
Cheers -- Tim