Clean the text from a multiline form

V

Vit

Hi All,

on a .cgi application, I get some data from a "multiline text form"
and I like to process it as a singular line... is it possible???

my $enquiry = $query->param("enquiry");

how can I "reformat" the multitext line as a singular line???

thanks all

Vit
 
J

j.keßler

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi All,

on a .cgi application, I get some data from a "multiline text form"
and I like to process it as a singular line... is it possible???

my $enquiry = $query->param("enquiry");

how can I "reformat" the multitext line as a singular line???

thanks all

Vit
You need to replace or strip any newline character.
But it should normally not be neccessary, since it could mess up the input
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAko2GHUACgkQE++2Zdc7Ete4PACePwaNSEZf9ukMpkYeMlLcPP2f
psYAnRspkBJ6n4HDj6VB3/gUSDs4I87t
=M2LW
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top