Re: Netscape Not Reading Header Variables
| From: | Ignacio Vazquez-Abrams | Date: | Wed, 15 Nov 2000 16:39:00 +0000 |
| Subject: | Re: Netscape Not Reading Header Variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25462@lists.php.net to get a copy of this message | ||
On Wed, 15 Nov 2000, Pamela Joseph wrote:
> I have a form that inputs content with a submit button to preview the page.
> My problem is that it works fine in IE, but in Netscape, I only get the
> first word of first variable displayed within the page. Although all the
> variables look fine in the URL, it seems the variables are not being
> assigned after it encounters a space.
>
> Any help would be appreciated. Here a sample of the code
>
> if ($preview) {
> header("Location:
>
> http://www.???.com/preview_page.html?cont_title=$cont_title&cont_meta=$cont_
> meta&cont_keywords=$cont_keywords&cont_heading=$cont_heading&cont_subheading
> =$cont_subheading&cont_body=$cont_body");
> exit;
> }
> pj ;)
> Pamela M. Joseph ____
>
Try:
header("Location: http://www.???.com/preview_page.html?cont_title=".urlencode($cont_title).(etc...)
This will change " " to "%20" et al according to W3C specifications. IE
is non-compliant this way.
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>