惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
Stack Overflow Blog
Stack Overflow Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
Cloudbric
Cloudbric
The Register - Security
The Register - Security
小众软件
小众软件
PCI Perspectives
PCI Perspectives
G
Google Developers Blog
AI
AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
Google DeepMind News
Google DeepMind News
宝玉的分享
宝玉的分享
Recent Commits to openclaw:main
Recent Commits to openclaw:main
量子位
TaoSecurity Blog
TaoSecurity Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
F
Full Disclosure
N
Netflix TechBlog - Medium
博客园_首页
Last Week in AI
Last Week in AI
A
Arctic Wolf
B
Blog RSS Feed
J
Java Code Geeks
C
Cybersecurity and Infrastructure Security Agency CISA
I
InfoQ
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
NISL@THU
NISL@THU
MyScale Blog
MyScale Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Jina AI
Jina AI
有赞技术团队
有赞技术团队
S
Schneier on Security
L
Lohrmann on Cybersecurity
P
Privacy & Cybersecurity Law Blog
T
Threat Research - Cisco Blogs
P
Palo Alto Networks Blog
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
Security Latest
Security Latest
Vercel News
Vercel News
博客园 - 司徒正美
Webroot Blog
Webroot Blog
Hacker News: Ask HN
Hacker News: Ask HN
A
About on SuperTechFans

博客园 - hingman

[已解决]Mac下Anaconda-Navigator闪退问题 [已解决]Mac下运行spyder提示"Python 意外退出" 博客园账号被盗 [转]软件版本命名规范 教你如何找到需要的开源软件 - hingman - 博客园 [转载]SDK相关概念 [转载]HAO123的迷思——谈谈SEO [转载]万能讲话稿 世界各国(地区)货币名称及其进位制 [转]共享软件防破解的实用方法 收集的SEO相关工具&网址 [转载]如何用关键字优化网站? [转载]共享软件作者常用网址 [转载]Google鲜为人知的强大功能 WinHack的开发技术经验(2)-字符编码的使用和转换 WinHack的开发技术经验(1)-使用 Unicode 作为内部字符串处理 [转载]提升网站在GOOGLE中排名的方法 [转载]网站优化之关键字选择 [转载]PayPal中文指南申请及paypal使用详细介绍
[转载]Support页面中发送信息到邮箱的表单代码
hingman · 2006-07-08 · via 博客园 - hingman


表单HTML代码:support.htmChinese Forum on Shareware !/F6rtt5k,G
1TpF `$erO
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">www.cnsw.org&Upj.Rj
<html>www.cnsw.orgyY"T~7|}
<head>中国共享软件联盟,CNSW,Shareware,developing,marketing,共享软件,市场,海外k        QR?/hwxj
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">www.cnsw.org6|;S7S#P2H#C%w
<title>Support</title>
<script language=JavaScript src="mail.js"></script>
</head>
中国共享软件联盟论坛iri!\L%ld+ni3C
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">],JI+Gz;{A4?
<table width="600" border="0" cellpadding="6" cellspacing="1" bgcolor="#FFFFFF">
  <form id="form1" method="post" action="http://www.yourwebsite.com/support.php" onsubmit="return Form_Validator(this);" name="theForm">Chinese Forum on Shareware !7~c&tvbP[7r@
    <tr>
      <td align="right">Your Name:</td>
      <td><input name="name" type="text" id="name"></td>        dTq.p(EF%X
    </tr>
    <tr>
      <td align="right">Your Email:</td>
      <td><input name="email" type="text" id="email"></td>;d9Z#uQSm$}qh]0@E
Hh

    </tr>Chinese Forum on Shareware !fv'O'~*U+~3j
    <tr>
      <td align="right">Your Message:</td>中国共享软件联盟论坛dxkBR
      <td><textarea name="yourmessage" cols="40" rows="10" id="yourmessage"></textarea></td>        Pr/v
^#FG"Xt

    </tr>
    <tr> 0J+H\4`.`j
      <td align="right"> </td>
      <td><input type="submit" name="Submit" value="Submit">      www.cnsw.org#s X4c;|aL$_#F
        <input type="reset" name="Reset" value="Reset"></td>Chinese Forum on Shareware !b2V9@F5O}l?
    </tr>
  </form>
</table>
</body>
</html>y
p j&xs9Y,|n
表单信息验证代码:mail.js4T8e-M$~(GT,e],{

<!--
function Form_Validator(theForm)

中国共享软件联盟论坛ps-o(x
T0f

{
if (theForm.name.value == "")中国共享软件联盟论坛+a6j0K0~-HR
  {中国共享软件联盟论坛6}%N9Fi)`r9rdh
    alert("请填写 \"your name\"");中国共享软件联盟,CNSW,Shareware,developing,marketing,共享软件,市场,海外@ W'U&q(nF
    theForm.name.focus();
    return false;www.cnsw.org+y'i.Kb'Z5{r
  }     
  Chinese Forum on Shareware !M_Y2in
Y

  if (theForm.email.value == "")中国共享软件联盟论坛5Mb b2~C
  {
    alert("请填写 \"Your Email\"");
    theForm.email.focus();
    return false;%p9wJ$\ka;t-w`
  }中国共享软件联盟,CNSW,Shareware,developing,marketing,共享软件,市场,海外5P)Wy8aX-~6W
  www.cnsw.orgQi7x$_ T
  if (theForm.yourmessage.value == "")
  {;YF2dO7{;U;gs
    alert("请填写 \"Your Message\"");www.cnsw.orgPs9@1m.qd
    theForm.yourmessage.focus();中国共享软件联盟,CNSW,Shareware,developing,marketing,共享软件,市场,海外6p'V8A'{|3D(@x}
    return false;
  }TwZpg N
return (true);U-r%X S*@&A2eM"J+n
}
yU*[IpE!b+e

//-->

中国共享软件联盟,CNSW,Shareware,developing,marketing,共享软件,市场,海外_v]3p/s|w
发送邮件PHP代码:support.php
s/[ Im
F
}a

<?php*g4h;\0P\H"I&l7U
    $NAME = $_POST["name"];
        $EMAIL = $_POST["email"];
        $MESSAGE = $_POST["yourmessage"];
?>\1YW#p
u+amjx4I

<?php中国共享软件联盟论坛 fH-Oy        T2I~
    set_time_limit("0");中国共享软件联盟,CNSW,Shareware,developing,marketing,共享软件,市场,海外WfWy:okx
    function result() {www.cnsw.org q^t$t_&~"[dXu
    global $socket;
    $result = fgets($socket);
    }www.cnsw.org-S~,JAW
    $socket = fsockopen("yourwebsite.com","25");
    set_socket_blocking($socket,true);
    fputs($socket,"HELO try \n");www.cnsw.orgx,T _r7C\#G_
    fputs($socket,"AUTH LOGIN \n");
    fputs($socket,base64_encode("webmaster@yourwebsite.com")."\n");k7Pt        o0K/o$SPu o
    fputs($socket,base64_encode("yourpassword")."\n");
    fputs($socket,"MAIL FROM: webmaster@yourwebsite.com \n");www.cnsw.orgX'Z2KU7Z`A7Jl
    fputs($socket,"RCPT TO: support@yourwebsite.com \n");
    fputs($socket,"DATA\n");
    $send = "From: webmaster@yourwebsite.com\n"."To: support@yourwebsite.com"."\nSubject:$NAME\n\nName: $NAME; E-mail: $EMAIL; Message: $MESSAGE\n.\n";
    fputs($socket,$send);中国共享软件联盟论坛}W8DIhb"d
    result();
    fclosel%[t:_``1pn e3R
($socket);
?>中国共享软件联盟,CNSW,Shareware,developing,marketing,共享软件,市场,海外ET`{,H[6YC
<?php
header("Location: http://www.yourwebsite.com/support.htm");  
exit;www.cnsw.org[ N)F@nO:M"c3Gh1H
?>;S#m6H7B$O{4Q
h

就这些,应该能看懂吧?

其中,

webmaster@yourwebsite.com是你用来发信的,yourpassword是webmaster@yourwebsite.com的密码;support@yourwebsite.com是你用来收信的。