ArizonaJohn Posted June 6, 2009 Share Posted June 6, 2009 Hi, Is it okay to have session variables with spaces in them (like the word "el paso")? The reason I ask is that I have some Ajax that works totally fine if the session variable is something with no spaces (like "elpaso"), but then when the session variable is a word with a space in it (like "el paso"), then the ajax won't work. Thanks. Link to comment https://forums.phpfreaks.com/topic/161140-session-variable-with-spaces/ Share on other sites More sharing options...
.josh Posted June 6, 2009 Share Posted June 6, 2009 well it looks like you answered your own question.. Link to comment https://forums.phpfreaks.com/topic/161140-session-variable-with-spaces/#findComment-850341 Share on other sites More sharing options...
.josh Posted June 6, 2009 Share Posted June 6, 2009 actually I think the problem is probably the space getting coded as it passes. Apparently it's okay to have $_SESSION['foo bar'] you might wanna try html_entity_decode or urldecode on it. Link to comment https://forums.phpfreaks.com/topic/161140-session-variable-with-spaces/#findComment-850342 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.