Re: [PHP] NETSCAPE Screws QUERY STRING!!!!!!
On 4 Mar 2001 04:17:18 -0800, Thomas Edison Jr. [EMAIL PROTECTED] wrote: The Internet Explorer converts the spaces in a query string into it's hexadecimal value of "%20" automatically, but netscape is not doing so. It's not reading the space and thus not displaying the page at all and giving the HTTP error 400. Use urlencode() or rawurlencode() when generating those URLs. The standards don't allow raw spaces in a URL string, so you'll need to encode your data when generating a link to work with browsers other than IE. -- 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] NETSCAPE Screws QUERY STRING!!!!!!
I'm passing variables in a query string to my php pages. The variables whose values contain spaces due to multiple words are being passed correctly to the Internet Explorer browser and are working perfectly there. However, they are not working at al in NETSCAPE browser. What should i do? The Internet Explorer converts the spaces in a query string into it's hexadecimal value of "%20" automatically, but netscape is not doing so. It's not reading the space and thus not displaying the page at all and giving the HTTP error 400. This the link i make : a href="add_pro_over.php3?title=? echo $title ?" if $title contains "Project", it goes. But if it contains "Project One" ... it doesn't work in NETSCAPE. When on to the next page, this $title also has to be sent into the Database. what do i do? regards, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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] NETSCAPE Screws QUERY STRING!!!!!!
You should use the urlencode() function. See http://www.php.net/manual/en/function.urlencode.php -- Meir Kriheli MKsoft computer systems 'There's someone in my head but it's not me" - Pink Floyd - Original Message - From: "Thomas Edison Jr." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 04, 2001 2:20 PM Subject: [PHP] NETSCAPE Screws QUERY STRING!! I'm passing variables in a query string to my php pages. The variables whose values contain spaces due to multiple words are being passed correctly to the Internet Explorer browser and are working perfectly there. However, they are not working at al in NETSCAPE browser. What should i do? The Internet Explorer converts the spaces in a query string into it's hexadecimal value of "%20" automatically, but netscape is not doing so. It's not reading the space and thus not displaying the page at all and giving the HTTP error 400. This the link i make : a href="add_pro_over.php3?title=? echo $title ?" if $title contains "Project", it goes. But if it contains "Project One" ... it doesn't work in NETSCAPE. When on to the next page, this $title also has to be sent into the Database. what do i do? regards, T. Edison jr. -- 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] NETSCAPE Screws QUERY STRING!!!!!!
Try urlencode ... - Original Message - From: "Thomas Edison Jr." [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 04, 2001 1:20 PM Subject: [PHP] NETSCAPE Screws QUERY STRING!! I'm passing variables in a query string to my php pages. The variables whose values contain spaces due to multiple words are being passed correctly to the Internet Explorer browser and are working perfectly there. However, they are not working at al in NETSCAPE browser. What should i do? The Internet Explorer converts the spaces in a query string into it's hexadecimal value of "%20" automatically, but netscape is not doing so. It's not reading the space and thus not displaying the page at all and giving the HTTP error 400. This the link i make : a href="add_pro_over.php3?title=? echo $title ?" if $title contains "Project", it goes. But if it contains "Project One" ... it doesn't work in NETSCAPE. When on to the next page, this $title also has to be sent into the Database. what do i do? regards, T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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]
[PHP] Re : [PHP] NETSCAPE screws QUERY STRING
The urlencode() is working fine with an echo statement normal query string. But it's NOT working with complex query string in printf() including $myrow[something] being picked up by mySQL db. this works : a href="add_pro_over.php3?title=? echo urlencode($title) ?" this doesn't work : printf("a href=\"pro_page1.php3?title='urlencode($myrow[title])'\"") OR such combinations as given in the manual. I tried out almost all!!! HELP T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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] Re : [PHP] NETSCAPE screws QUERY STRING
Try printf("a href=\"pro_page1.php3?title='".urlencode($myrow[title])."'\"") J on 3/4/01 11:55 AM, Thomas Edison Jr. at [EMAIL PROTECTED] wrote: The urlencode() is working fine with an echo statement normal query string. But it's NOT working with complex query string in printf() including $myrow[something] being picked up by mySQL db. this works : a href="add_pro_over.php3?title=? echo urlencode($title) ?" this doesn't work : printf("a href=\"pro_page1.php3?title='urlencode($myrow[title])'\"") OR such combinations as given in the manual. I tried out almost all!!! HELP T. Edison jr. -- Julian Wood Learning Technologies and Digital Media University of Calgary -- 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] Re : [PHP] NETSCAPE screws QUERY STRING
Julian, i tried this out it's giving the single quotes in the value... 'value+value2' and on the next page where i'm printing the value...the backslashes are also being added in front of single quotes : \'value value2\' where can i go from here? this has made the urlencode function to work...only part left now... T. Edison jr. --- Julian Wood [EMAIL PROTECTED] wrote: Try printf("a href=\"pro_page1.php3?title='".urlencode($myrow[title])."'\"") J on 3/4/01 11:55 AM, Thomas Edison Jr. at [EMAIL PROTECTED] wrote: The urlencode() is working fine with an echo statement normal query string. But it's NOT working with complex query string in printf() including $myrow[something] being picked up by mySQL db. this works : a href="add_pro_over.php3?title=? echo urlencode($title) ?" this doesn't work : printf("a href=\"pro_page1.php3?title='urlencode($myrow[title])'\"") OR such combinations as given in the manual. I tried out almost all!!! HELP T. Edison jr. -- Julian Wood Learning Technologies and Digital Media University of Calgary -- 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] = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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] Re : [PHP] NETSCAPE screws QUERY STRING
Where is the string 'value+value2' coming from? $myrow[title]? If it is coming from the db (I'm guessing - it seems a little strange to me that this would be your title, but in this code we're discussing there is no other possible source), and it has slashes in it, you may need to use stripslashes to get rid of the slashes. Also, why are you using printf, but not formatting your string at all? Why don't you just use echo? I assume we're still dealing with this line of code: printf("a href=\"pro_page1.php3?title='".urlencode($myrow[title])."'\"") J on 3/4/01 12:20 PM, Thomas Edison Jr. at [EMAIL PROTECTED] wrote: Julian, i tried this out it's giving the single quotes in the value... 'value+value2' and on the next page where i'm printing the value...the backslashes are also being added in front of single quotes : \'value value2\' where can i go from here? this has made the urlencode function to work...only part left now... T. Edison jr. --- Julian Wood [EMAIL PROTECTED] wrote: Try printf("a href=\"pro_page1.php3?title='".urlencode($myrow[title])."'\"") J on 3/4/01 11:55 AM, Thomas Edison Jr. at [EMAIL PROTECTED] wrote: The urlencode() is working fine with an echo statement normal query string. But it's NOT working with complex query string in printf() including $myrow[something] being picked up by mySQL db. this works : a href="add_pro_over.php3?title=? echo urlencode($title) ?" this doesn't work : printf("a href=\"pro_page1.php3?title='urlencode($myrow[title])'\"") OR such combinations as given in the manual. I tried out almost all!!! HELP T. Edison jr. -- Julian Wood Learning Technologies and Digital Media University of Calgary -- 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] = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- Julian Wood Learning Technologies and Digital Media University of Calgary -- 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] Re : [PHP] NETSCAPE screws QUERY STRING
try this printf(" a href=\"pro_page1.php3?title='%s\" ", urlencode($myrow[title])') john "Thomas Edison Jr." wrote: The urlencode() is working fine with an echo statement normal query string. But it's NOT working with complex query string in printf() including $myrow[something] being picked up by mySQL db. this works : a href="add_pro_over.php3?title=? echo urlencode($title) ?" this doesn't work : printf("a href=\"pro_page1.php3?title='urlencode($myrow[title])'\"") OR such combinations as given in the manual. I tried out almost all!!! HELP T. Edison jr. = Rahul S. Johari (Director) ** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : [EMAIL PROTECTED] Tel : 91-4546512/4522124 *** __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- 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]