Re: [PHP] escape character in query string
Hello Joaquin, use the urlencode function to escape the special characters. After, use urldecode to get the string back to normal. Regards, Thiago Melo de Paula On Sun, Jun 22, 2008 at 11:34 PM, joaquinbordado [EMAIL PROTECTED] wrote: would someone happen to know the escape character for query string? here is my querysting my.php?message=Hello%PHP%0AHow%was%your%day? the output should be Hello PHP How was your day? -- View this message in context: http://www.nabble.com/escape-character-in-query-string-tp18061596p18061596.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] escape character in query string
%20 -Original Message- From: joaquinbordado [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 3:35 AM To: php-general@lists.php.net Subject: [SPAM] [PHP] escape character in query string Importance: Low would someone happen to know the escape character for query string? here is my querysting my.php?message=Hello%PHP%0AHow%was%your%day? the output should be Hello PHP How was your day? -- View this message in context: http://www.nabble.com/escape-character-in-query-string-tp18061596p180615 96.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] escape character in query string
for a space I belive a plus sign would work + try the urlencode function it would make it much easier. /James Dempster On Mon, Jun 23, 2008 at 3:34 AM, joaquinbordado [EMAIL PROTECTED] wrote: would someone happen to know the escape character for query string? here is my querysting my.php?message=Hello%PHP%0AHow%was%your%day? the output should be Hello PHP How was your day? -- View this message in context: http://www.nabble.com/escape-character-in-query-string-tp18061596p18061596.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] escape character in query string
would someone happen to know the escape character for query string? here is my querysting my.php?message=Hello%PHP%0AHow%was%your%day? the output should be Hello PHP How was your day? -- View this message in context: http://www.nabble.com/escape-character-in-query-string-tp18061596p18061596.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php