Jump to content

Replacing a blank space in a URL with %20


emexinc

Recommended Posts

...i have the following php code...keep in mind this is part of a larger piece of code...

echo "<p align=\"left\"><a onFocus=\"if(this.blur)this.blur()\" href=\"picked.php?previous=".$_GET['letter']."&amp;show=".[color=red]$row['title'][/color]."&amp;key=".$row['key']."\" target=\"songs\"><font class=\"sgu\" id=\"sgu\">".[color=blue]$row['title'][/color]."</font></a></td>\n";

...the red part of code has a tendancy to have spaces, which i don't want...the blue does as well, but i do want blank spaces and not %20...firstly, i've tried numerous tips from everywhere and i can't seem to filter out the red code to replace blank spaces with %20...keeping in mind that i would not like to have the blue code effected by this...any help or direction is greatly appreciated...thanks for your time...
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.