RE: [PHP] link variables space problem in netscape
IE may tolerate it, but you should transpose those spaces into the URL encoded equiv. I think this is %20 for a space, but check your hex table to be sure. Here is your function to do this. http://www.php.net/manual/en/function.urlencode.php IE tolerates a lot of slack programming. Netscape tells it like it should be so us it for testing your code along with IE. John -Original Message- From: Mark Lo [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 24, 2001 2:23 PM To: *PHP mail list Subject: [PHP] link variables space problem in netscape Hi, I am having a problem in link variables in netscape. etc. www.domain.com?xx=1xxx=2=mark loxxxee=polol if the above link contains space, then everyting is faded after the space, how to over come this problem in netscape. In IE5, it is okay to have space in link variables. Thank you Mark -- PHP General 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 General 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]
Re: [PHP] link variables space problem in netscape
At 02:23 AM 4/25/01 +0800, Mark Lo wrote: Hi, I am having a problem in link variables in netscape. etc. www.domain.com?xx=1xxx=2=mark loxxxee=polol if the above link contains space, then everyting is faded after the space, how to over come this problem in netscape. In IE5, it is okay to have spacein link variables. The proper way to phrase In IE5, it is okay to have spaces in link variables is IE5, which doesn't follow the specifications of the language, works with spaces embedded in the links. Netscape, which follows (at least that part of) the HTML specification, disallows embedded spaces in links. Meanwhile, try the urlencode() and urldecode() functions. :) Thank you Welcome. - Brian S. Dunworth Sr. Software Development Engineer Oracle Database Administrator The Printing House, Ltd. (850) 875-1500 x225 [EMAIL PROTECTED] - -- PHP General 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]
Re: [PHP] link variables space problem in netscape
urlencode() will turn a space into +. If you want the real full codes like %20 you need to use rawurlencode() instead. http://www.php.net/manual/en/function.rawurlencode.php -dan Previously, John Huggins said: IE may tolerate it, but you should transpose those spaces into the URL encoded equiv. I think this is %20 for a space, but check your hex table to be sure. Here is your function to do this. http://www.php.net/manual/en/function.urlencode.php -- Never underestimate the power of stupid people in large groups. -George Carlin -- PHP General 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]
Re: [PHP] link variables space problem in netscape
Two words: URL Encode. Original Message On 4/24/01, 11:23:02 AM, Mark Lo [EMAIL PROTECTED] wrote regarding [PHP] link variables space problem in netscape: Hi, I am having a problem in link variables in netscape. etc. www.domain.com?xx=1xxx=2=mark loxxxee=polol if the above link contains space, then everyting is faded after the space, how to over come this problem in netscape. In IE5, it is okay to have space in link variables. Thank you Mark -- PHP General 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 General 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]
RE: [PHP] link variables space problem in netscape
Two words: URL Encode. Actually, one word: urlencode(); heheheh Chris