[UPHPU] Another quick question

TJ Hunter tjhunter at ruistech.com
Tue May 25 21:47:26 MDT 2004


Look into urlencode()

http://us3.php.net/urlencode



Ashley Oviatt wrote:

> Another dumb question...
>
> I have some code that goes like this:
>
> switch ($_POST[Month])
>     {
>     case 'Month_Jan':
>         $call = '/graphics/Monthly Mailers/call to 
> action/FF/FF14-1-RS.png';
>     break;
>
>     case 'Month_Feb':
>         $call = "/graphics/Monthly Mailers/call to 
> action/FF/FF14-2-RS.png";
>     break;
>
> ...ETC...
>     
>     default:
>         print "WE do not know that month.";
>     break;
>         }
>
> I don't know if it will show, but there is a space between Monthly and 
> Mailers and in call to action. If I change the dir to have _ instead 
> of spaces, this code works. If it has the spaces, it says the file 
> cannot be found. (I have spaces in the dir because it's how our 
> designers want it.)
>
> I've tried putting a \ in front of the space, but still no luck. I've 
> also tried using a ' and a " to enclose the path, but no go. Is there 
> a way to do this?
>
> Ash
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: list-unsubscribe at uphpu.org
> For additional commands, e-mail: list-help at uphpu.org
>
>
>
>



More information about the UPHPU mailing list