On Thu, Mar 29, 2001 at 03:34:47AM +0000, Sibuyas wrote:
> 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;

urlencode, works great, just urlencode($string)

-- 
,-------------------------------------------.
> Name:           Alson van der Meulen      <
> Personal:       [EMAIL PROTECTED]       <
> School:       [EMAIL PROTECTED]    <
`-------------------------------------------'
Well, my files were backed up.
---------------------------------------------


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to