Re: [MacPerl-WebCGI] Filtering the input from a transmitet form
[email protected] (Thomas De Groote) Fri, 10 Jan 2003 19:11:16 +0100
| Newsgroups | perl.macperl.webcgi |
|---|---|
| Message-ID | <[email protected]> |
Hi, I always use this to transform textarea results to single line : $data =~ s/[\n\r][\n\r]/<br>/g; Good luck, Thomas On vrijdag, jan 10, 2003, at 19:05 Europe/Brussels, Eelco Alosery wrote: > I have a problem when I reseave a transmitet form and want to writh it > to a data base. > All the reseaved info must by written to a single line, but somtimes > it starts writing multiple lines. > This happens when there has giffen a enter for a new line in the > textfield on the form. > How do I filter al enters to the the foloing text: <br> > I als want to filter multiple whithe spaces to a single white space > and i want to filter out white spaces at the start end the end of the > reseaved text. > My problem usely happens when a text is copy't from a word file for > accample. > > So I mean what is the best code to filter a reseaved text to writh it > to 1 line in a data base > > > Thanks, Eelco Alosery