Re: Echo with extra characters
| From: | Bastian Vogt | Date: | Wed, 08 Jan 2003 14:53:41 +0000 |
| Subject: | Re: Echo with extra characters | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-24654@lists.php.net to get a copy of this message | ||
Maybe you want to use "urlencode()"?!
hth,
Bastian
Alex Francis schrieb:
> I have the following code in my page as a header.
> <?
> if ($mainarea=="Language")
> {
> header("Location:add_5-14_material.php?mainarea=$mainarea");
> }
> else
> {
> }
> ?>
> When I echo $mainarea I get \'Language\'. I think it is something to do
> with my quotation marks but need some help.
>
> How do I get rid of the ' and \ so that I am left with my variable?.