[英]HTML Form Mailto Output Formatting
I'm having a little trouble defining my question. 我在定义我的问题时遇到了一些麻烦。 Here's what I have.
这就是我所拥有的。
A mailto form with some fancy Javascript elements. 一个带有一些精美Javascript元素的mailto表单。
Upon submission of this form, I want to format the data submitted to be more readable. 提交此表格后,我想格式化提交的数据,以提高可读性。
For instance, when I submit the form, the e-mail body text is displayed as such: 例如,当我提交表单时,电子邮件正文文本将显示为:
NAME1="value"
NAME2="value"
NAME3="value"
What I want is for it to be formatted in a table 我想要的是将其格式化为表格
<table>
<tr>
<td>"value"</td>
<td>"value"</td>
<td>"value"</td>
<tr>
</table>
I'm at the point where I know to have my submit button onClick to some script which would then output it to the format I want, but can't figure out where to go from there. 我现在知道要让我的提交按钮onClick到达某个脚本,然后该脚本会将其输出为我想要的格式,但无法确定从那里开始的位置。 If anyone can just point me in the right direction, I should be able to figure it out.
如果有人能指出我正确的方向,我应该能够弄清楚。
Thanks. 谢谢。
That is not possible 这是不可能的
Use a server and send as HTML 使用服务器并以HTML格式发送
Using mailto you can only do %0D%0A for line feed 使用mailto只能将%0D%0A用于换行
Like this: 像这样:
<form
onsubmit="location='mailto:'+this.email.value+
'?subject='+escape(this.subject.value)+
'&body=Name:'+escape(this.name.value)+'%0D%0A'+
'Address:'+escape(this.address.value); return false">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.