madmatter23
09-05-2007, 09:01 PM
I'm having some trouble passing a variable through $_GET.
The variable is
$category = "Business & Entrepreneurial";
It needs to be passed from one page to another using $_GET.
However, because the value has an ampersand in it, only the portion of the value before the ampersand is transferred.
So, for "Business & Entrepreneurial", the value of $category is transferred simply as "Business ".
I have to pass along a few values with this sort of misleading punctuation, including ampersands forward slashes.
I know that & is the html code for and ampersand, but it won't help much to use that since it actually has an ampersand in it and creates the same problem.
Does anyone know of a fix or work around?
Thanks.
The variable is
$category = "Business & Entrepreneurial";
It needs to be passed from one page to another using $_GET.
However, because the value has an ampersand in it, only the portion of the value before the ampersand is transferred.
So, for "Business & Entrepreneurial", the value of $category is transferred simply as "Business ".
I have to pass along a few values with this sort of misleading punctuation, including ampersands forward slashes.
I know that & is the html code for and ampersand, but it won't help much to use that since it actually has an ampersand in it and creates the same problem.
Does anyone know of a fix or work around?
Thanks.