Solved

Format Mailto form: removing "+" in body after user submits form

Posted on 2009-05-04
2
327 Views
Last Modified: 2012-05-06
I'm using a primitive mailto action inside a form. When the user clicks submit an outlook e-mail is opened and the Subject and Body is populated. However, The body is populated using a long string using "+" as spaces.. How do I get rid of those "+" so the body appears as the user has entered?

Please don't provide answers on how to use PHP to submit the form myself.  I'm given requirements  and the business owner wants this mailto form.

When I enter in "This is my subject" and "This is my details details details" and click submit.
the body apperas as follows: case_subject=this+is+my+subject&case_description=this+is+my+details+details+details&x=31&y=2

I would like the body to appear as such:
case_subject = this is my subject
case_description = this is my details details details


Thank you
<form id="create_case" METHOD="POST" name="create_case" action="mailto:xxx@xxxx.com?subject=Custom Case Portal">

		<div id="log_new_case_title">Log a new case</div>

		<div class="case_title">subject</div>

		<input type="text" value=""  maxlength="10000" size="30" name="case_subject" class="input_support" id="case_subject"/>

		<div class="case_title">details</div>

		<textarea cols="60" rows="10" name="case_description" class="input_support" id="case_description"></textarea>

 

		<input id="support_submit_button" type="image" src="/html/images/l.png" height=20 width=65 class="button"/>

		

	</form>

Open in new window

0
Comment
Question by:galaxy573
  • 2
2 Comments
 

Author Comment

by:galaxy573
ID: 24299676
OK, while you all are taking a look at this... I think I'm going to try to use an onclick event in the submit button that takes the string and removes the +'s
0
 

Accepted Solution

by:
galaxy573 earned 0 total points
ID: 24300186
<script language="JavaScript" type="text/javascript">

function alter(object) {
 if (navigator.appName.indexOf('Netscape') > -1) {
 object.encoding = 'text/plain';
 }
}

</script>

<input id="support_submit_button" type="image" onclick="javascript:alter(this.form)" src="/html/images/lit.png" height=20 width=65 class="button"/>

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

919 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

14 Experts available now in Live!

Get 1:1 Help Now