Feedback from a form

I've created a application form for a web page and had it e-mailed back to the user. When the text appears in the e-mail the spaces have been replaced with +. I need to know how to convert the + back to a space. Any help would be appreciated.
wdw1971Asked:
Who is Participating?
 
shlomoyConnect With a Mentor Commented:
if you want to replaec all + signs in yourFile to one space characters do this:

(I assume you're files are on a unix machine which has perl on it.)

at your Unix prompt type
$ perl -ne 'tr/\+/ /;print' youFile

$  - your command prompt
yourFile - the file you want to convert.

That should do it.

If it's not what you wanted - please explain further.
0
 
Michel PlungjanIT ExpertCommented:
How about

<FORM ........ ENCTYPE="text/plain">

in the originating form?

Alternatively modify your script that emails the result so it removes the +. (what script, what language)

Alternatively use javascript to change the spaces into an &nbsp;
before submitting...

Let me know

Michel
0
 
heyhey_Commented:
I'm not CGI expert, but this sounds like GET vs POST problem ...
or I'm wrong ?
0
 
flivaudaCommented:
if your mailer is in perl you can do the following:

$myText =~ s/\+/ /g;

do that before you mail the text
0
 
WaelEgCommented:
First is that your only problem with the emailed form I think you have on it also many %symbols. If it is also happen so you need to study the structure of the returned string from the HTML form if not so I'm not understanding your question.
Ok if you don't know the structure of the returned string I can tell you.
0
All Courses

From novice to tech pro — start learning today.