I can't believe I never bothered looking for this earlier, but better late than never, right?
When you use a simple mailto: command for forms, it will use the viewers default mail client to submit the form details. Depending on the users browser & settings, the submitted data will be sent in one of two ways.
Generally, in Internet Explorer, it will attach a file to the e-mail (postdata.att). You can then open that file with any text editing program, such as notepad or wordpad.
In firefox, it simply inserts the form data onto the body of the e-mail itself generally.
The only problem is, the formatting is not too user friendly.
This is how it looks when you open the postdata.att file in notepad as well as the body of the e-mail when used through FireFox:
Name=Arthur&Address=123+Street&City=Los+Angeles&State=California&Zip=99999&Country=United+States&Phone=0123456789&Email=test@test.com
As we can see, it's a bit difficult to read this.
Up until now, I had been using the replace all feature in notepad to replace the "&" character with either several spaces, or used commas and saved the file as a .csv file and opened it up in excel in a spreadsheet.
Now, with a SIMPLE line of code, the results will appears as the following in both browsers I tested in:
Name=Arthur
Address=123 Street
City=Los Angeles
State=California
Zip=99999
Country=United States
Phone=0123456789
Email=test@test.com
Doesn't that look A LOT better? :)
It also will be in the body of the e-mail in Internet Explorer, so you don't have to take that extra step of having to open the file in notepad.
And what is that simple line we need to ask you are all probably wondering?
enctype="text/plain"
Simply open the File Inspector in WebEasy and click on the form so that the entire form object is selected.
Then under the properties tab, locate the Attribute Custom Script.
Double click on the value to the right of it. This will open the Custom Script Assistant.
You should see a line of code already there that looks like:
onsubmit="return weCheckForm(this)"
Simply add a new line of text (Press CTRL + E) and type in
enctype="text/plain"
Viola!



Facebook
Twitter
LinkedIn
RSS
votes