Link to home
Start Free TrialLog in
Avatar of wdw1971
wdw1971

asked on

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.
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

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
Avatar of heyhey_
heyhey_

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

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

do that before you mail the text
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.
ASKER CERTIFIED SOLUTION
Avatar of shlomoy
shlomoy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial