Hi there,
I dunno if it's the grey skies or the flu that's giving me grief trying to figure this out today..
problem is the following:
I have a name coming from an <option> tag in my $_POST array. The name is for instance $_POST[name] = "Paris Hilton"; The way I populated the options in this list is I retrieved firstname and surname from a db table and set the <option> tag value to be $firstname." ".$surname
Now, on form submit, I'm trying to split the name into firstname and surname again. I tried explode(" ",$_POST['name']), nothing happened, it stayed in one piece. I tried explode(" ", $_POST['name']), same result. I said to myself, okay, this is the first time I'm trying to use explode, maybe I should go with something mroe familiar to figure out where the problem is. So I tried strpos to look for that space.
strpos($_POST['name'], ' ') returns absolutely nothing, same with strpos($_POST['name'],' '). What happened to the space? Why is it invisible to any function I'm trying to find it with? Do I need to escape it somehow in the function parameter list?