This $_GET[] has to be valid and not empty.
I can check for it being empty by isset,
but how do you check for the values being valid?
The http GET is a serialized string, see below example. One time I noticed in a var_dump in the $_GET['addr'] I got only part of the serialized string and I got an error.
Like this a:1:{i:0;s:611:"a:11:{i:0;s:54:"706.... with an error message.
How can I check for a valid $_GET['addr']? My app has to be error free.
This is what I have but I need an && is valid some way.
if (isset ($GET['addr'])) {
$addrarray = $GET['addr'];
} else {
exit("There is something missing or incorrect in the address and you can't plot it on Google maps.");
}
tia,
example of serialized string
a:1:{i:0;s:611:"a:11:{i:0;s:54:"7069 Consolidated Way, Suite 100, San Diego, CA, 92121";i:1;s:50:"15272 Bolsa Chica St , Huntington Beach, Ca, 92649";i:2;s:53:"5150 Ontario Mills Pkwy, suit 400, Ontario, CA, 91764";i:3;s:36:"1461 Concord Ave, Concord, CA, 94520";i:4;s:45:"6416 Variel Avenue, Woodland Hills, CA, 91367";i:5;s:45:"435 Valencia Street, San Francisco, CA, 94103";i:6;s:42:"200 Anchor Court, Thousand Oaks, ca, 91320";i:7;s:37:"633 Laurel St., San Carlos, Ca, 94070";i:8;s:33:"515 Appian Way, Pinole, CA, 94803";i:9;s:39:"29011 The Old Road, Valencia, ca, 91355";i:10;s:37:"920 Morena Blvd, San Diego, CA, 92110";}";}