Re: NETSCAPE Screws QUERY STRING!!!!!!
| From: | Meir Kriheli - MKsoft | Date: | Sun, 04 Mar 2001 13:24:30 +0000 |
| Subject: | Re: NETSCAPE Screws QUERY STRING!!!!!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42498@lists.php.net to get a copy of this message | ||
You should use the urlencode() function.
See
http://www.php.net/manual/en/function.urlencode.php
--
Meir Kriheli
MKsoft computer systems
'There's someone in my head but it's not me" - Pink Floyd
----- Original Message -----
From: "Thomas Edison Jr." <thomasedisonjr@yahoo.com>
To: <php-general@lists.php.net>
Sent: Sunday, March 04, 2001 2:20 PM
Subject: [PHP] NETSCAPE Screws QUERY STRING!!!!!!
> I'm passing variables in a query string to my php
> pages. The variables whose values contain spaces due
> to multiple words are being passed correctly to the
> Internet Explorer browser and are working perfectly
> there. However, they are not working at al in NETSCAPE
> browser. What should i do?
>
> The Internet Explorer converts the spaces in a query
> string into it's hexadecimal value of "%20"
> automatically, but netscape is not doing so. It's not
> reading the space and thus not displaying the page at
> all and giving the HTTP error 400.
>
> This the link i make :
> <a href="add_pro_over.php3?title=<? echo $title ?>">
>
> if $title contains "Project", it goes.
> But if it contains "Project One" ... it doesn't work
> in NETSCAPE.
>
> When on to the next page, this $title also has to be
> sent into the Database.
>
> what do i do?
>
> regards,
> T. Edison jr.