On Wednesday 30 January 2002 04:45, Simos Varelakis wrote: > Hi to everyone > > I try to pass a varaible ($text) which contains text from <texarea> (with > Header"location:foo2.php?text=$text") from one page foo1.php to foo2.php > and display it to another textarea object in foo2.php > > the problem is that i lose all the contents since the first tab or CR > prsseed in the source textarea > > any suggestions
You need to encode $text before you can pass it along in the URL. See urlencode() and rawurlencode(). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* An expert is a person who avoids the small errors as he sweeps on to the grand fallacy. -- Benjamin Stolberg */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]