Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 28th, 2007, 12:29 PM
Friend of Wrox
Points: 2,813, Level: 22
Points: 2,813, Level: 22 Points: 2,813, Level: 22 Points: 2,813, Level: 22
Activity: 50%
Activity: 50% Activity: 50% Activity: 50%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 427
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?
Reply With Quote
  #2 (permalink)  
Old September 28th, 2007, 12:49 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
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
================================================== =========
Reply With Quote
  #3 (permalink)  
Old September 28th, 2007, 12:55 PM
Friend of Wrox
Points: 2,813, Level: 22
Points: 2,813, Level: 22 Points: 2,813, Level: 22 Points: 2,813, Level: 22
Activity: 50%
Activity: 50% Activity: 50% Activity: 50%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 427
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.
Reply With Quote
  #4 (permalink)  
Old September 28th, 2007, 01:04 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
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
================================================== =========
Reply With Quote
The Following User Says Thank You to dparsons For This Useful Post:
Ron Howerton (February 22nd, 2013)
  #5 (permalink)  
Old September 28th, 2007, 01:09 PM
Friend of Wrox
Points: 2,813, Level: 22
Points: 2,813, Level: 22 Points: 2,813, Level: 22 Points: 2,813, Level: 22
Activity: 50%
Activity: 50% Activity: 50% Activity: 50%
 
Join Date: Jun 2003
Location: Denver, CO, USA.
Posts: 427
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!
Reply With Quote
  #6 (permalink)  
Old September 29th, 2007, 11:59 PM
Friend of Wrox
Points: 1,749, Level: 16
Points: 1,749, Level: 16 Points: 1,749, Level: 16 Points: 1,749, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2007
Location: San Diego, CA, USA.
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.
Reply With Quote
The Following User Says Thank You to chroniclemaster1 For This Useful Post:
Ron Howerton (February 22nd, 2013)
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 09:19 AM
Populate mailto address from form textbox Hughesie78 ASP.NET 2.0 Professional 1 December 20th, 2007 06:51 AM
DetailsView checkbox default appearance jpullam ASP.NET 2.0 Professional 2 November 29th, 2006 01:37 PM
How to change appearance of radio button BigBud Javascript How-To 3 March 22nd, 2005 09:34 AM
The appearance of a File control cbotiza HTML Code Clinic 1 November 12th, 2004 08:51 AM



All times are GMT -4. The time now is 04:05 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.