Re: passing <textarea> content from one page to another

From: Date: Tue, 29 Jan 2002 20:51:00 +0000
Subject: Re: passing <textarea> content from one page to another
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-82609@lists.php.net to get a copy of this message
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 */

« previous php.general (#82609) next »