我的html语句有什么问题?(50分)

C

czying

Unregistered / Unconfirmed
GUEST, unregistred user!
我有个网站(比如搜狐),想让别人看了后,把网址发给朋友的信箱里,我写的是以下代码.
<script language="javascript">
<!--
function newwin(){
adduser.action="mailto:"+adduser.text.value
}
// --></script>
<form name="adduser" method="post" action="">
内容:<input type=text name=text value="">
<input type=hidden name="web-address" value="http://www.sohu.com">
<input type=submit name="submit" onclick="newwin()" value="发送">
</form>
可是发到信箱里的是
text=cz-wangdong@163.net&amp;web-address=http%3A%2F%2Fwww.sohu.com&amp;submit=%B7%A2%CB%CD
中文成了乱码,连"//"也成乱码了,况且我又不想发送"text=cz-wangdong@163.net&amp;"和"&amp;submit=%B7%A2%CB%CD"
这些东西,我该怎样写.
 
>>adduser.action="mailto:"+adduser.text.value
这儿有问题,通过链接后字符串会转换,如空格会变成%20(八进制)等
你就在javascript里对特殊字符会一下处理
 
小天,你经常在哪里连跆拳道?我也来玩玩!
 
我在网上找了一个发送Email的组件,已经注册,但程序还是不能发送。请大家指教。
<%@ LANGUAGE="JScript" %>
<HTML>
<BODY>
<pre>
<b>
Geocel DevMailer 1.0
JScript Usage Example
(c) 1999, Geocel International, Inc.
</b>
</pre>
<% // Create DevMailer Object
Mailer = Server.CreateObject("Geocel.Mailer");
// Add first SMTP server
Mailer.AddServer("mailhost.geocel.com", 25);
// Set Sender Information
Mailer.FromAddress = "support@geocel.com";
Mailer.FromName = "Geocel Support";
// Add a recipient to the message
Mailer.AddRecipient("lham@geocel.com", "L. Ham");
// Set the Subject and Body
Mailer.Subject = "Welcome to DevMailer JScript Test"
Mailer.Body = "Test Message Body Line 1/r/n" +
"Test Message Body Line 2/r/n" ;
// Send Email - Perform Error Checking
bSuccess = Mailer.Send();
if( !bSuccess ) {
if( !Mailer.Queued )
Response.Write("<h3>Could not send message..queueing failed!</h3>");
else
Response.Write("<h3>Could not send message..queued instead!</h3>");
}
else
Response.Write("<h3>Message Sent Successfully!</h3>");
%>
<BR>
</BODY>
</HTML>
 
是不是要通过身份验证?
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
623
import
I
I
回复
0
查看
676
import
I
顶部