Jump to content

Substring Query Variable


phpQuestioner

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.