Solved

Feedback from a form

Posted on 1998-11-18
5
144 Views
Last Modified: 2013-12-25
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.
0
Comment
Question by:wdw1971
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 1829645
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
 
LVL 16

Expert Comment

by:heyhey_
ID: 1829646
I'm not CGI expert, but this sounds like GET vs POST problem ...
or I'm wrong ?
0
 
LVL 1

Expert Comment

by:flivauda
ID: 1829647
if your mailer is in perl you can do the following:

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

do that before you mail the text
0
 

Expert Comment

by:WaelEg
ID: 1829648
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
 
LVL 8

Accepted Solution

by:
shlomoy earned 50 total points
ID: 1829649
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

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question