Passing Special Characters in Query String
| From: | Thomas Edison Jr. | Date: | Wed, 28 Mar 2001 06:36:39 +0000 |
| Subject: | Passing Special Characters in Query String | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-45835@lists.php.net to get a copy of this message | ||
I'm facing a problem with Special Characters ($, %, &,
\, /, ;, :, ", ') etc......
We are sending a varibale in a query string like this
:
<a href="add_pro_team.php3?title=<? echo
urlencode($title) ?>">
with $title containing multiple words & these special
characters, it is not passed. I get an error.
Without urlencode, multiple words are not passed with
the "+" signs. And with URLENCODE, the special
characters are not processes giving an error? what do
i do?
Also, if someone enters any of these special
characters in text areas or fields provided to them -
and they have to be entered into the database - the
entering is done successfully, but getting values back
from database to print on the page gives an error. How
to work through these special characters in a way that
they can be entered & extracted back from database &
also passed in query strings as is without errors??
Regards,
T. Edison jr.
=====
Rahul S. Johari (Director)
******************************************
Abraxas Technologies Inc.
Homepage : http://www.abraxastech.com
Email : abraxastech@yahoo.com
Tel : 91-4546512/4522124
*******************************************
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/?.refer=text