Re: [PHP] urlencode and urldecode

2008-05-18 Thread Ólafur Waage
You can read about apache's mod_include and its echo element. http://httpd.apache.org/docs/2.2/mod/mod_include.html#element.echo 2008/5/17 Chris W [EMAIL PROTECTED]: Whenever you build a query string you need to us the urlencode to encode any characters that may be in there that aren't legal

[PHP] urlencode and urldecode

2008-05-17 Thread Chris W
Whenever you build a query string you need to us the urlencode to encode any characters that may be in there that aren't legal for a URL. On the server I am using now, when you access values using $_GET['xyz'], it does the urldecode for you. I'm not positive, but I am pretty sure, that at

[PHP] Urlencode vs htmlentities

2005-12-06 Thread Mark Steudel
Lets say I have the following: Current URL: http://www.domain.com/page.php?action=list http://www.domain.com/page.php?action=listtop=/page.php?action=listid=3 top=/page.php?action=listid=3 $top = $_SERVER['PHP_SELF'].'?'.$_SERVER['argv']['0'] Now I want to create a URL with a return link in

Re: [PHP] Urlencode vs htmlentities

2005-12-06 Thread comex
Should I use htmlentites on $top first? AFAIK, all of what you said is correct except for that, where you should use htmlentities(urlencode($top)). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Urlencode vs htmlentities

2005-12-06 Thread Curt Zirzow
On Tue, Dec 06, 2005 at 12:05:10PM -0800, Mark Steudel wrote: Lets say I have the following: Before I go further: htmlentities - escapes the output for html urlencode- escapes the output for a url Current URL: http://www.domain.com/page.php?action=list

Re: Re: [PHP] urlencode and google search query

2004-10-28 Thread Joel CARNAT
On Thu, Oct 28 2004 - 00:31, Marek Kilimajer wrote: I meant get parameters to google: http://www.google.com/search?q=helpie=utf-8oe=utf-8 you need to change ie parameter ^^ to whatever encoding you are using. yepee ! finally got it. so the tweak was : * don't use urlencode() * add

[PHP] urlencode and google search query

2004-10-27 Thread Joel CARNAT
Hi, I have a submit form from where I can search things to several sites (google, freshmeat, ...). I use PHP4/urlencode to generate the correct query. But it seems google does not use the right encoding :( example - query=programme télé: $engine = $_POST[engine]; $query =

Re: [PHP] urlencode and google search query

2004-10-27 Thread Marek Kilimajer
Joel CARNAT wrote: Hi, I have a submit form from where I can search things to several sites (google, freshmeat, ...). I use PHP4/urlencode to generate the correct query. But it seems google does not use the right encoding :( example - query=programme télé: $engine =

Re: Re: [PHP] urlencode and google search query

2004-10-27 Thread Joel CARNAT
On Wed, Oct 27 2004 - 23:41, Marek Kilimajer wrote: how comes urlencode generates %E9 and google generates %C3%A9 ? is google using some specific encoding ? any tweak to encode the google way ? you can specify your encoding to google using ie parameter. and output hum... I don't get what

Re: [PHP] urlencode and google search query

2004-10-27 Thread Marek Kilimajer
Joel CARNAT wrote: On Wed, Oct 27 2004 - 23:41, Marek Kilimajer wrote: how comes urlencode generates %E9 and google generates %C3%A9 ? is google using some specific encoding ? any tweak to encode the google way ? you can specify your encoding to google using ie parameter. and output hum... I

[PHP] urlencode() and newlines?

2004-10-16 Thread Nick Wilson
hello all, For reasons beyond my immediate control i have to keep some strings of text in a text *new line delimited* text file. I also have to urlencode those strings for use in my script. Like this: ## text file This is a line\nThis is another line This is another string\nwith some

Re: [PHP] urlencode() and newlines?

2004-10-16 Thread Marek Kilimajer
Nick Wilson wrote: hello all, For reasons beyond my immediate control i have to keep some strings of text in a text *new line delimited* text file. I also have to urlencode those strings for use in my script. Like this: ## text file This is a line\nThis is another line This is another

Re: [PHP] urlencode() and newlines?

2004-10-16 Thread Nick Wilson
* and then Marek Kilimajer declared Nick Wilson wrote: hello all, For reasons beyond my immediate control i have to keep some strings of text in a text *new line delimited* text file. I also have to urlencode those strings for use in my script. Like this: ## text file This is

Re: [PHP] urlencode() and newlines?

2004-10-16 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared Nick Wilson wrote: hello all, For reasons beyond my immediate control i have to keep some strings of text in a text *new line delimited* text file. I also have to urlencode those strings for use in my script. Like this: ## text file

Re: [PHP] urlencode() and newlines?

2004-10-16 Thread Nick Wilson
* and then Marek Kilimajer declared echo urlencode(This is a line\nThis is another line); Yep, i can see that it's encoded but when the data is POSTed to a form, it does not come out as a newline... Are you sure the other side accepts, does not remove newlines? Create a form

[PHP] urlencode - urldecode

2004-08-08 Thread PHP Gen
Hi, I am using a header(location:) to send a rawurlencod'ed string to another script...then I tried decode it and use those values...but its not working... snippets of my code: // sending file:

Re: [PHP] urlencode - urldecode

2004-08-08 Thread John Holmes
PHP Gen wrote: // sending file: $one=rawurlencode(dir_name=$dir_nameimgs_dir=$imgs_dirthumb_pre=$thumb_pretn_width=$tn_widthtn_height=$tn_heightwrite_text=$write_textcolors=$colorsx_pos=$x_posy_pos=$y_poslink1=$link1link2=$link2link3=$link3img_src1=$img_src1img_src2=$img_src2); header(location:

Re: [PHP] urlencode - urldecode

2004-08-08 Thread PHP Gen Newbie
Hi, Thanks again John, point taken...will not trust the browser, will use sessions :-) Cheers, -Mag --- John Holmes [EMAIL PROTECTED] wrote: PHP Gen wrote: // sending file:

Re: [PHP] URLencode issues - halp! - code included

2003-01-24 Thread Marek Kilimajer
on the browser? Thanks, -Mike -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 3:31 PM To: PHP General list Cc: SpyProductions Support Team Subject: Re: [PHP] URLencode issues - halp! Mike -- ...and then SpyProductions Support Team

Re: [PHP] URLencode issues - halp!

2003-01-24 Thread Ernest E Vogelsinger
At 22:30 23.01.2003, David T-G spoke out and said: [snip] ...and then SpyProductions Support Team said... % % I am having some issues, apparently, with URL encode. ... % % I decided to use this because people are allowed to use *any* key as part of %

[PHP] URLencode issues - halp!

2003-01-23 Thread SpyProductions Support Team
I am having some issues, apparently, with URL encode. I've got people signing up for a membership on a site, but some of their memberships fail because the username, which in encoded, sometimes goes through fine and sometimes does not. Are there any special reasons this may happen? I decided

Re: [PHP] URLencode issues - halp!

2003-01-23 Thread rw
Some code please! RW Quoting SpyProductions Support Team [EMAIL PROTECTED]: ### ### I am having some issues, apparently, with URL encode. ### ### I've got people signing up for a membership on a site, but some of their ### memberships fail because the username, which in encoded, sometimes

Re: [PHP] URLencode issues - halp!

2003-01-23 Thread Chris Shiflett
--- SpyProductions Support Team [EMAIL PROTECTED] wrote: I am having some issues, apparently, with URL encode. ... Oh, and BTW, I do use urldecode(). :) If you are using URL encode in order to pass values on the URL (and then reference them as $_GET['blah']), then URL decoding is superfluous

Re: [PHP] URLencode issues - halp!

2003-01-23 Thread David T-G
Mike -- ...and then SpyProductions Support Team said... % % I am having some issues, apparently, with URL encode. ... % % I decided to use this because people are allowed to use *any* key as part of % their name, so a name like rt'$%^*'rt is perfectly allowable. Makes sense, but I'd use

RE: [PHP] URLencode issues - halp! - code included

2003-01-23 Thread SpyProductions Support Team
:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 3:31 PM To: PHP General list Cc: SpyProductions Support Team Subject: Re: [PHP] URLencode issues - halp! Mike -- ...and then SpyProductions Support Team said... % % I am having some issues, apparently, with URL encode. ... % % I decided

Re: [PHP] URLencode issues - halp! - code included

2003-01-23 Thread Leif K-Brooks
: SpyProductions Support Team Subject: Re: [PHP] URLencode issues - halp! Mike -- ...and then SpyProductions Support Team said... % % I am having some issues, apparently, with URL encode. ... % % I decided to use this because people are allowed to use *any* key as part of % their name, so a name like rt

RE: [PHP] URLencode issues - halp! - code included

2003-01-23 Thread SpyProductions Support Team
So what is the decode part for then? Earlier versions of PHP? :) Thanks, -Mike -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 4:43 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] URLencode issues - halp

RE: [PHP] URLencode issues - halp! - code included

2003-01-23 Thread Chris Shiflett
--- SpyProductions Support Team [EMAIL PROTECTED] wrote: So what is the decode part for then? Earlier versions of PHP? No, it is for decoding URL-encoded strings, just as you would expect. The reason you do not need to decode URL variables is because they are not URL-encoded by the time your

[PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread andy
Hi there, I am trying to fill a form again when an error occures, therefore I redirect to the form and pass the values via url like this: HEADER(Location:/profiles/6.$recipient_id.2.html?subject=.rawurlencode($ subject).message=.rawurlencode($message).); then I put it in again like this

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Bogdan Stancescu
You don't have to rawurlDEcode again - that's done automatically. You have to encode so you're HTTP compliant, but the decoding is done by PHP (or even Apache? I'm not sure) when receiving urlencoded strings via URL and form data. Bogdan andy wrote: Hi there, I am trying to fill a form

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread andy
does not help, any other ideas? Bogdan Stancescu [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You don't have to rawurlDEcode again - that's done automatically. You have to encode so you're HTTP compliant, but the decoding is done by PHP (or even

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Andrey Hristov
try to do double rawurldecode(). Andrey - Original Message - From: andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 2:36 PM Subject: Re: [PHP] urlencode and decode are producing \\\' instead of \' does not help, any other ideas? Bogdan Stancescu [EMAIL

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread andy
Original Message - From: andy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 29, 2002 2:36 PM Subject: Re: [PHP] urlencode and decode are producing \\\' instead of \' does not help, any other ideas? Bogdan Stancescu [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL P

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Jason Wong
On Friday 29 March 2002 20:56, andy wrote: does not work. Just like the decode function is out of order! It is not even decoding \' I am trying to fill a form again when an error occures, therefore I redirect to the form and pass the values via url like this:

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Bogdan Stancescu
Jason Wong wrote: Well your problem is not caused by the rawurlencode, rawurldecode. It's probably because you have magic_quotes_gpc set to on. Try this: For your URL: rawurlencode(stripslashes($subject)), and same for $message. For your textarea: htmlspecialchars($subject), $message. If

Re: [PHP] urlencode and decode are producing \\\' instead of \'

2002-03-29 Thread Anders Henke
Hi! What about using stripslashes: $variable = stripslashes($variable); Also see http://www.php.net/stripslashes /Anders Henke Jason Wong [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED]... On Friday 29 March 2002 20:56, andy wrote: does not work. Just like the decode function

[PHP] urlencode() and rawurlencode()

2001-10-18 Thread Olexandr Vynnychenko
Hello php-general, People, tell me please what's the difference between subj, except that the 1st translates space into +. -- Best regards, Olexandr Vynnychenko mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] urlencode

2001-09-07 Thread Alejandro Molina
Hi, I need to know wich is the best way to send variables through an URL,that if the variables are of the string type, and what if the variable has spaces like $string='this is a test'. I have read about the use of urlencode(), but I have a strange behaviour using this function, sometimes it work

Re: [PHP] urlencode

2001-09-07 Thread Christopher CM Allen
for an example I send the variable $user='user 1', and in the url there appears user=user+1 (which I think is correct) but when I read the variable in the php page it displays user+1 (doesn´t it has to return to user '1'?). urlencodes counterpart is urldecode you need to decode each variable

RE: [PHP] URLencode

2001-09-07 Thread Brandon Orther
-994-6364 www.webintellects.com -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 2:41 PM To: PHP User Group Subject: [PHP] URLencode Hello, I am working on a script and using urlencode

Re: [PHP] URLencode

2001-09-07 Thread Tom Carter
PROTECTED] Sent: Friday, September 07, 2001 11:05 PM Subject: RE: [PHP] URLencode I just realized that on the server I am trying to run this on, URLEncode is working like rawurlencode. Does anyone have any idea why this might be happening? Thank you

[PHP] urlencode/decode

2001-08-06 Thread Michael Mehlmann
this script works as expected, if you don't submit ,' and \ but if you use ,' or \ these characters will be quoted with \ '\test'\ - \\'\\test\\'\\ ? echo htmlentities($val).form method=GETinput type=text name=valinput type=submit/form; ? how to get rid of this??? I don't want any character

[PHP] urlencode

2001-03-17 Thread rkirk.com Mail
Help - I've a problem when using urlencode/decode functions (same with rawurl...). If I encode : mnemonic = "lnkphoto" I get: mnemonic+%3D++%22lnkphoto%22 And if decode it during the same script execution it converts back to exactly: mnemonic = "lnkphoto" which is what I'd expect. However, if

Re: [PHP] urlencode

2001-03-17 Thread John Lim
You have magic_quotes_runtime enabled which causes this behaviour. You can disable it by turning it off in your PHP.ini. See http://php.net/manual "rkirk.com Mail" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Help - I've a problem when using urlencode/decode

RE: [PHP] urlencode

2001-03-17 Thread Richard Kirk
No, its set to "off". -Original Message- From: John Lim [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 17, 2001 5:14 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] urlencode You have magic_quotes_runtime enabled which causes this behaviour. You can disable it by turning it o

Re: [PHP] urlencode

2001-03-17 Thread John Lim
rom: John Lim [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 17, 2001 5:14 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] urlencode You have magic_quotes_runtime enabled which causes this behaviour. You can disable it by turning it off in your PHP.ini. See http://php.net/manual "rkirk.