Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 28th, 2007, 12:29 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default Mailto Form Appearance

I have an email enabled form:

<form method="POST" action="mailto:a.b@c.com">
...
<input type="text" name="body">
...

The email sent contains a body that looks like this:

body=Dear john,

I'm leaving you for the TV repairman.

How can I eliminate the name of the form field so it just looks like this:

Dear john,

I'm leaving you for the TV repairman.

I've tried omitting it from the input tag, but then the value is not displayed at all.

In a related vein, is is possible to change the "=" to a ":" or something else?
 
Old September 28th, 2007, 12:49 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Hello Ron,
Sadly I do not think this can be altered because, essentially, you are simply passing the POST data into the email which literally looks like <formfield>=<formvalue> which I am sure you know.

Also, the above method may or may not work depending on the email client the user has installed on their pc.

http://www.netmechanic.com/news/vol3/form_no4.htm

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
Professional IIS 7 and ASP.NET Integrated Programming
Wrox Blox: Introduction to Google Gears
Wrox Blox: Create Amazing Custom User Interfaces with WPF and .NET 3.0
================================================== =========
 
Old September 28th, 2007, 12:55 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

I've read the myriad warnings about not using mailto forms, but don't think they matter in this instance. This is an INTRANET application where both browser and email client versions are guaranteed.

I am more interested in suppressing the name of the field in the email than in changing the "=" to ":". I would like the email to read like a normal email sent to a person, not a like an EDI file of fieldname=value pairs.
 
Old September 28th, 2007, 01:04 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I understand what you are trying to do but void of some server side programming I don't think your going to have much luck finding a pure HTML answer to this.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
Professional IIS 7 and ASP.NET Integrated Programming
Wrox Blox: Introduction to Google Gears
Wrox Blox: Create Amazing Custom User Interfaces with WPF and .NET 3.0
================================================== =========
The Following User Says Thank You to dparsons For This Useful Post:
Ron Howerton (February 22nd, 2013)
 
Old September 28th, 2007, 01:09 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 428
Thanks: 57
Thanked 2 Times in 2 Posts
Default

I am exploring other options. I was just trying to avoid doing a bunch of work if there was a simple solution. Surely somebody else has had the same issue?

Thanks!
 
Old September 29th, 2007, 11:59 PM
Friend of Wrox
 
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts
Default

My 2 cents is that you're right, and lots of other people have had this issue. However, I think what you're running up against is the limits of what can be done with HTML. When all those other people ran into this problems, I believe they solved it by inventing Javascript and server side programming. Far from "doing a bunch of work", I think you'll find it easier to locate a simple PHP or .NET script on the internet. You are dealing with a common issue, there's lots written about it. Just run some Google searches.

-------------------------

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.
The Following User Says Thank You to chroniclemaster1 For This Useful Post:
Ron Howerton (February 22nd, 2013)





Similar Threads
Thread Thread Starter Forum Replies Last Post
form not populating mailto in outlook 98 Hughesie78 ASP.NET 2.0 Professional 1 December 20th, 2007 10:19 AM
Populate mailto address from form textbox Hughesie78 ASP.NET 2.0 Professional 1 December 20th, 2007 07:51 AM
DetailsView checkbox default appearance jpullam ASP.NET 2.0 Professional 2 November 29th, 2006 02:37 PM
How to change appearance of radio button BigBud Javascript How-To 3 March 22nd, 2005 10:34 AM
The appearance of a File control cbotiza HTML Code Clinic 1 November 12th, 2004 09:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.