快速HTML发送表单数据-已解决 [英] Quick HTML sending form data - SOLVED

查看:89
本文介绍了快速HTML发送表单数据-已解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有此代码...

<removed /><br />



这给了我所需的数据,但在电子邮件正文中却是这样显示的...

客户名称客户编号

而我希望它是

客户名称
客户编号

我知道这很简单,但是我也是如此!

如何在其中放置新行?

提前谢谢.

经过大量的实验和谷歌搜索,我找到了答案.

对于那些感兴趣的人,请使用%0A"而不是< br/>或& nbsp

非常感谢Pete在此问题上所花费的时间.不可以,因为您更改了引用,所以不能像这样放置href.您需要做的是将其应用于显示的文本,而不是href.


对不起,皮特,不起作用.

我这样做正确吗?

onclick ="location.href = this.form.sendEmailTo.options [sendEmailTo.selectedIndex] .value + this.form.customername.value< br/> + this.form.customernumber.value"/& gt;

因为这似乎不允许发送邮件.


I have this code...

<removed /><br />



This is giving me the data I need, but it is presented like this in the email body...

customernamecustomernumber

whereas I would like it to be

customername
customernumber

I know it is simple, but then, so am I!

How do I put a new line in there?

Thanks in advance.

After much experimentation and googling I found the answer.

For those interested, usd "%0A" rather than < br/ > or & nbsp

Many thanks to Pete for his time spent on this matter.

解决方案

After customername, put the <br/> tag.


No, you can''t put your href like this as you''ve changed the reference. What you need to do is to apply that to the text that you display, and not the href.


sorry Pete, doesn''t work.

Am I right in doing this?

onclick="location.href=this.form.sendEmailTo.options[sendEmailTo.selectedIndex].value + this.form.customername.value<br/> + this.form.customernumber.value"/&gt;

for this seems to not allow the mail to be sent.


这篇关于快速HTML发送表单数据-已解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆