Re: [PHP] urlencoding.

2004-01-01 Thread John W. Holmes
Larry Brown wrote: foreach($_GET as $key=>$value) { $send = $send."&".$key."=".$value; } Just use $_SERVER['QUERY_STRING'] instead of recreating it using this loop (unless the data is coming from $_POST). As for the original question, just throw $_GET into $_SESSION ($_SESSION

RE: [PHP] urlencoding.

2004-01-01 Thread Larry Brown
How about this one? Add it to an include for the site and use it whenever you have an error check. function goBack($newSite,$errMsg) { $send = ""; foreach($_GET as $key=>$value) { $send = $send."&".$key."=".$value; } $goTo = urlencode($newSite."?errMsg=".$errMsg.$send);

Re: [PHP] urlencoding.

2003-12-31 Thread Tom Rogers
Hi, Tuesday, December 30, 2003, 3:02:24 AM, you wrote: CW> Let me give a quick background. I am a very experienced programmer but CW> I haven't done much php and only a little web development in perl. I am CW> now creating a web site with Apache, php and MySQL. CW> I am having the user fill out

Re: [PHP] urlencoding.

2003-12-31 Thread Chris W
I don't know why I didn't look at the html source before I posted that question. The source looks like this VALUE=""jhgfhjf"" which tells why the field is showing blank. So now the question is what to do about it. I guess htmlspecialchars will take care of that? Thanks for hint on sessions,

Re: [PHP] urlencoding.

2003-12-31 Thread Matt Matijevich
[snip] My problem is that any field that contains a double quote, all data after the first double quote is missing from the form field. When I look at the long URL I do see a %22 where the " are supposed to be, and all other data is there too. [/snip] Take a look at the html source. What is p