RE: [PHP-DEV] %20 IE vs Netscape, insert into location problem

2001-03-04 Thread Chris Newbill

http://www.php.net/manual/en/function.urlencode.php

-Chris

)> -Original Message-
)> From: Trevor Garrett [mailto:[EMAIL PROTECTED]]
)> Sent: Sunday, 04 March, 2001 6-41 pM
)> To: [EMAIL PROTECTED]
)> Subject: [PHP-DEV] %20 IE vs Netscape, insert into location problem
)> 
)> 
)> I have a page of a list of names from a database and have the following
)> code so I can click on a name to view detail for that name:
)>  echo "$Results2[name]";
)> 
)> after clicking on the name, the following showing in the location in IE:
)> 
)> http://www.domainname.com/name.php3?name=FIRST%20LAST%20
)> 
)> which yields the proper information based upon the variable ?name,
)> however when using Netscape it yields the following:
)> 
)> http://www.domainname.com/name.php3?name=FIRST LAST
)> 
)> instead of the unix for a space as %20, Netscape is leaving it as a
)> space thus screwing up my search and yielding no results.
)> 
)> Is there anything I can do to overcome this for Netscape viewers?
)> 
)> Thanks,
)> Trevor
)> 
)> 
)> -- 
)> PHP Development Mailing List <http://www.php.net/>
)> To unsubscribe, e-mail: [EMAIL PROTECTED]
)> For additional commands, e-mail: [EMAIL PROTECTED]
)> To contact the list administrators, e-mail: [EMAIL PROTECTED]
)> 

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] %20 IE vs Netscape, insert into location problem

2001-03-04 Thread Trevor Garrett

I have a page of a list of names from a database and have the following
code so I can click on a name to view detail for that name:
 echo "$Results2[name]";

after clicking on the name, the following showing in the location in IE:

http://www.domainname.com/name.php3?name=FIRST%20LAST%20

which yields the proper information based upon the variable ?name,
however when using Netscape it yields the following:

http://www.domainname.com/name.php3?name=FIRST LAST

instead of the unix for a space as %20, Netscape is leaving it as a
space thus screwing up my search and yielding no results.

Is there anything I can do to overcome this for Netscape viewers?

Thanks,
Trevor


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]