Solved

Feedback from a form

Posted on 1998-11-18
5
139 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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

752 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