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. Quote 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.. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/161140-session-variable-with-spaces/#findComment-850342 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.