phpQuestioner Posted July 24, 2007 Share Posted July 24, 2007 I have a question, as it relates to query strings and all know browsers. If I leave spaces in a substring query; will every browser always automatically add in a %20 to make up for the whitespace? Does anyone know of a browser that does not use %20 to fill in a query string white? Here is an example of what I am talking about: Before http://www.domain.com/page1.html?Hello There After http://www.domain.com/page1.html?Hello%20There The reason I ask is that I am sending a variable from one html page to another using JavaScript and I am using a PHP page (too process form data) with a ereg_replace to convert %20 into a basic whitespace. I know that IE and FF both use the "%20" in query string to automatic fill in whitespace; but I am not sure about other browsers. Link to comment https://forums.phpfreaks.com/topic/61622-substring-query-variable/ Share on other sites More sharing options...
suttercain Posted July 24, 2007 Share Posted July 24, 2007 Opera and Safari both also add %20.... I am not sure 100% of browsers do, but I would think they do. Link to comment https://forums.phpfreaks.com/topic/61622-substring-query-variable/#findComment-306712 Share on other sites More sharing options...
phpQuestioner Posted July 24, 2007 Author Share Posted July 24, 2007 Thanks Suttercain - I hope so, because that is the only ereg_replace I used for this script. Link to comment https://forums.phpfreaks.com/topic/61622-substring-query-variable/#findComment-306731 Share on other sites More sharing options...
suttercain Posted July 25, 2007 Share Posted July 25, 2007 The only thing I would look more into is portable device browsers. I know the iPhone uses safari, but I'm not sure about the others. Link to comment https://forums.phpfreaks.com/topic/61622-substring-query-variable/#findComment-306777 Share on other sites More sharing options...
phpQuestioner Posted July 25, 2007 Author Share Posted July 25, 2007 Suttercain, That's the thing I have been thinking a lot lately about; especially with the immersion of the new iPhones. I am not even sure if my websites are portable device friendly; because I use mostly all fixed layouts. I am pretty sure I could use a separate stylesheet for portable devices (ie media=tty) and set the css to be more fluid, but should I? So that made me think; I wonder just how many designers, at this time, are making sure their websites have an alternative stylesheet or design for portable devices? So I created a poll, on the CSS Forum and I was hoping that some of you will take this poll and let me know where some of you designers stand on portable device accessibility for your website designs/layouts. Here Is The Link To The Poll: http://www.phpfreaks.com/forums/index.php/topic,151424.0.html Link to comment https://forums.phpfreaks.com/topic/61622-substring-query-variable/#findComment-306961 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.