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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.