[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

PHP question on query string formatting



hello list!

if i enter this string inside a <textarea> input box:


it's & a "sample"
string!


and the form method used is GET, the string is passsed in the query string looking
like this:

it%27s+%26+a+%22sample%22%0D%0Astring%21


where i need help... using PHP, how do you convert the first string into a single
line query string format just like the 2nd one?

i tried using the htmlentities() function but it converts things wrongly. it
looks like this:

it's%20&amp;%20a%20&quot;sample&quot;

...  hope someone can help.

regards everyone,
sib

---------------------------------------------------------
A world of Information. The journey begins here. At Home.
Internet Cebu's web based mail. http://www.i-mailbox.net



Reply to: