Solved

Feedback from a form

Posted on 1998-11-18
5
132 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
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 to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

706 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now