⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 signup.php

📁 php中英版本 仿alibaba贸易平台
💻 PHP
📖 第 1 页 / 共 3 页
字号:
<?
if($action==1){
/*
include("http://www.ec51.com/include/configuration.inc");
include("http://www.ec51.com/include/database.inc");
include("http://www.ec51.com/include/dbaccess.inc");

$lang = "gb2312";
$user_id = "test";
$rc = configuration($lang, $userid);
session_start();
 */

include("../connect.php");
$regtime=date("Ymd");
$loginname=trim($MemberID);
$linkman=$MemberName;
$password=$Password;
$pwdqn=$PwdQn;
$pwdan=$PwdAn;
$company=$CompanyName;
$sex=$Prefix;
$deptname=$DeptName;
$jobtitle=$JobTitle;
$email=$Email;
$tel=$CompanyPhone1."-".$CompanyPhone2."-".$CompanyPhone3;
$fax=$CompanyFax1."-".$CompanyFax2."-".$CompanyFax3;
$address=$CompanyAddr;
$zip=$CompanyZIPCode;
$city=$CompanyCity;
$country=$Country;
$biztype=$biztype;
$product=$CompanyProvince;
$homepage=$HomePage;
$industry=$Catid;

//*不再进行中英文用户同时验证:2003/12/05 //200312/17 重新对中英文用户都进行验证
$query=mysql_query("select * from $biz_user where user='$loginname'");
$num=mysql_num_rows($query);
if ($num>0) {
$reason="<div align=center><font color=red><b>sorry! the member id is exit!</b></font></div></br>";
$action=0;
}


$query=mysql_query("select * from en_user where loginname='$loginname'");
$num=mysql_num_rows($query);
if ($num>0) {
$reason="<div align=center><font color=red><b>sorry! the member id is exit!</b></font></div></br>";
$action=0;
}
}

if($action==1){
$sql="insert into en_user(loginname,password,pwdqn,pwdan,company,linkman,sex,deptname,jobtitle,email,tel,fax,address,zip,city,country,biztype,product,homepage,industry,regip,lastip,regtime,lasttime)
values ('$loginname','$password','$pwdqn','$pwdan','$company','$linkman','$sex','$deptname','$jobtitle','$email','$tel','$fax','$address','$zip','$city','$country','$biztype','$product','$homepage','$industry','$REMOTE_ADDR','$REMOTE_ADDR','$regtime','$regtime')";
$query=mysql_query($sql);

$regtime=date("Y-m-d H:i:s");
$sql="insert into $biz_user(user,password,email,regtime,lasttime,regip,lastip)
values ('$loginname','$password','$email','$regtime','$regtime','$REMOTE_ADDR','$REMOTE_ADDR')";
$query=mysql_query($sql);

if($query){
//$to_emtype=3;
//include("include/to_email.php");
//include("http://www.ec51.com/include/to_email.php");
$subj="Welcome you to be one of the Ec51.com Members!";


/*
$message="
<html><head>
<title>ec51.com&pound;&shy;Importer,Buyer,Distributors directory</title>
<style type=text/css><!--
BODY,TD{color:#000;font-size:12px;font-family:Arial,sans-serif;MARGIN-TOP:0px}
A:LINK{color:#039;text-decoration:underline;}
A:VISITED{color:#039;text-decoration:underline;}
A:HOVER{color:#F60;text-decoration:underline;}
.LL{line-height: 150%;}
.X{font:bold 24px}
.L{font:bold 18px}
slepec
electric
electronic
.LM{font:bold 14.8px}
.M{font-size:12px;font-weight:bold}
.C{font-size:12px}
.S{font-size:10px;font-family:Verdana,sans-serif;}
.S9{font-size:9px;font-family:Verdana,sans-serif;}
.S1{font-size:11px;font-family:Verdana,sans-serif;}
.M13{font-size:13px;font-weight:bold;font-family:Verdana,sans-serif;color:#fff}
.MORE{font:bold 10px Verdana,sans-serif;text-decoration:underline;}
.ST{font:bold 11px Verdana,sans-serif;}
select{font-size:11px}
input{font-size:11px}
-->
</style>
</head>
<Body bgcolor=#FFFFFF leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><center>
<br>
<table border=0 cellpadding=0 cellspacing=0 width=760><tbody>
<tr><td width=1%><img src=eimg/logo_middle_new.gif border=0 width=223 height=37></td>
<td class=ST align=right valign=top>
        <table border=0 cellpadding=0 cellspacing=0 width=350  class=ST><tbody>
        <tr><td valign=top align=right ><a href=http://my.alibaba.com/trade/user/signin>Sign in</a>
&nbsp;-&nbsp; <a href=http://my.alibaba.com/trade/user/join?cd=0>Join Now</a>&nbsp; -&nbsp;
<a href=http://www.alibaba.com/trade/help/helpcenter?vd=0>Help</a>
&nbsp;-&nbsp;&nbsp;</td>
   <td width=113 valign=top><a target=_blank>
   <img src=eimg/inquire_home.gif align=middle border=0 width=113 height=15></a><br>


        </td></tr></table>
</td></tr>
</table>

<table cellspacing=0 cellpadding=0 width=760 border=0>
<tbody>
<tr>
<td align=right valign=bottom width=400>
  <table border=0 width=342 cellspacing=0 cellpadding=0 height=24>
    <tr>
      <td width=51 height=24><img border=0 src=eimg/home.gif width=51 height=24></td>
      <td width=87 height=24><img border=0 src=eimg/2.gif width=87 height=24></td>
      <td width=111 height=24><img border=0 src=eimg/3.gif width=111 height=24></td>
      <td width=93 height=24><img border=0 src=eimg/4.gif width=93 height=24></td>
    </tr>
  </table>
</td>
<td align=right valign=bottom>
<img src=eimg/home_buy.gif border=0 valign=bottom width=59 height=33>
<img src=eimg/home_sell.gif border=0 valign=bottom width=53 height=24>
<img src=eimg/myalibaba_nokey.gif border=0 width=55 height=24></td>
<td align=right valign=bottom width=90>
<a target=_blank href=index.htm><img src=eimg/china.gif border=0 valign=bottom alt=China width=40 height=16></a><br>
</td>
</tr></tbody></table>
<table cellspacing=0 cellpadding=0 width=760 border=0 height=5 align=center>
  <tr>
    <td width=760 valign=top height=63> &iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;<b><font color=#FF0000>sucess!
      </font></b>
      <p>&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;Please
        Remember your login name&pound;&ordm;szccccc Login Password&pound;&ordm;222222</p>
      <p>&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;For a free member,you can freely
        post your offers and see sell offers in Ec51.com</p>
      <p> &iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;For a paid service,now only
        USD250.00, For be a paid memeber,<font face=\"Arial, Helvetica, sans-serif\" size=4><b><font color=#FF0000>please
        click here to apply!</font></b></font></p>
      <p>&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;&iexcl;All members enjoy full access
        to Worldbid.com including: </p>
      <ul>
        <li><font class=\"standard12\">Full access to W</font><font class=\"standard12\">orldwide
          Importer Directory searchable by industry type and geographic region
          </font>
        <li><font class=\"standard12\"> <br>
          </font>
        <li><font class=\"standard12\">Email Trade Notifications, which instantly
          inform you of new opportunities in your area of business via email <br>
          <br>
          </font>
        <li><font class=\"standard12\">A Company Showroom, which markets your product
          or service offering online 24 hours a day 7 days a week through Worldbid's
          network of over 100 trade websites <br>
          <br>
          </font>
        <li><font class=\"standard12\">Unlimited posting of your own offers to buy
          and sell <br>
          <br>
          </font><br>
      </ul>
      <p><font color=#FF0000>中国用户请按以下付款方式成会外贸通会员,立即查询所有进口商信息:
      <p><font color=#FF0000>收款单位:深圳市易贸信息技术有限公司
      <p><font color=#FF0000>开户银行:招商银行深圳南油支行  账号:2583848210001
      <p><font color=#FF0000>现在加入外贸通会员,全年服务费人民币1580元。您将可以查询到高质量的全球进口商信息
      <p><font color=#FF0000></font></p>
      </td>
</tr>
</table>





<br>
<div align=center>
  <center>
      <table width=760 border=0 cellpadding=0 cellspacing=0>
        <tr>
          <td bgcolor=dddddd height=2></td>
        </tr>
        <tr>
          <td height=19><br>
            <div align=center> <a href=http://www.alibaba.com/><span class=\"S9\">
              Home</span></a><span class=\"S9\"> - <a href=http://www.alibaba.com/aboutalibaba/index.html>
              <span class=\"S9\"> About Alibaba</span></a><span class=\"S9\"> - <a href=http://www.alibaba.com/sitemap/sitemap.html>Site
              Map</a> - <a href=http://www.alibaba.com/trade/servlet/page/static/careers>Career
              Opportunities</a> <br>
              <a href=http://www.alibaba.com/aboutalibaba/partneringwithali.html>Partnering
              with Alibaba</a> - <a href=http://www.alibaba.com/aboutalibaba/contact.html>Contact
              Us</a> <br>
              <br>
              </span></span><span class=\"S9\"><font class=s><a href=http://www.alibaba.com/trade/servlet/page/static/privacy_statement>Privacy
              Policy</a> - <a href=http://www.alibaba.com/trade/servlet/page/static/legal_notice>Terms
              of Use</a> - <a href=http://www.alibaba.com/trade/servlet/page/static/safetrade/index>Safe
              Trading Tips</a><br>
              <a href=http://www.alibaba.com/trade/servlet/page/static/copyright_policy>Copyright
              Notice</a> (c) 1999-2003 Alibaba.com Corporation. </font><font class=s></font></span><font class=s><br>
              <br>
              </font></div>
          </td>
        </tr>
      </table>
  </center>
</div>
</body></html>";

*/
//$message="<html><head><meta http-equiv=\"Refresh\"content=\"3;url=http://www.ec51.com/en/reg.php\">";

$message="

Dear $linkman, Congratulations!

  Welcome you to be one of the Ec51.com Members!

  Your Ec51 ID is $loginname and password is $password. Remember, this ID is very important for you! You need to save this ID and password where you can remember and easy to get it back. You can Change your Password any time. Once you lost your ID or your Password later, you can go to LOGIN to find [Forgot Password?], enter your registered email address, the system will automatically deliver your ID and Password to your email account.

  In Ec51,you can find worldwide importers,buyers,distributors.


  If you have any further questions, please contact us:
  Tel: 86-755-26092307
  Fax: 86-755-26099007
  Email: info@ec51.com

  Please LOGIN to access your account now!


  Marketing Department

  Ec51.co
  Tel: 86-755-26092307 Fax: 86-755-26099007
  http://www.ec51.com
   ";

$from="webmaster@ec51.com";
mail("$email",$subj,$message,"From: $from\nReply-To: $from\nX-Mailer: PHP/".phpversion());

session_start();
session_unregister("username");
session_register("username");
session_unregister("password");
session_register("password");
session_unregister("is_pass");
session_register("is_pass");
include("reg.php");
exit();
}
else{
$reason="<div align=center><font color=red><b>Database error!</b></font></div></br>";
}
}
?>


<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Sign In</title>
</head>
<!--
http://member.ecplaza.net/add/signup.asp?country=AI&Token=310BB0FB1D134E18A962D3B85344B9A3

-->

<script>
function checkform(theform)
{
  var letters = "abcdefghijklmnopqrstuvwxyz_0123456789" +
                "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  var letter =  "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

  var allword = letters + "~!@#$%^&*()+|/?;:'[{]}`"
  var errletter = ""
  if(theform.MemberID.value.length < 1)
  {
    alert("Please enter your login name!")
    theform.MemberID.focus()
    return false
  }

  if(letter.indexOf(theform.MemberID.value.charAt(0)) == -1)
  {
    alert("A login name can contain only alphanumeric characters (A-Z, 0-9,) and no space. " )
    theform.MemberID.focus()
    return false
  }

  if(theform.MemberID.value.length < 4)
  {
    alert("Your login name must be at least 4 characters long. ")
    theform.MemberID.focus()
    return false
  }

  if(theform.MemberID.value.length > 12)
  {
    alert("Login Name must be between 4 to 12 characters. Use only letters (a-z), numbers (0-9), and no spaces. ")
    theform.MemberID.focus()
    return false
  }



  if(theform.Password.value.length < 1)
  {
    alert("Please enter your password!")
    theform.Password.focus()
    return false
  }


   if(theform.Password.value.length < 4)
  {
    alert("Your password must be at least 4 characters long.")
    theform.Password.focus()
    return false
  }

  if(theform.Password.value.length > 12)
  {
    alert("Passowrd must be between 4 to 12 characters. ")
    theform.Password.focus()
    return false
  }

  if(theform.RePassword.value.length < 1)
  {
    alert("Please enter your password confirmation. ")
    theform.RePassword.focus()
    return false
  }

  if(theform.Password.value != theform.RePassword.value)
  {
    alert("The password fields did not match. Please re-enter a password in both fields. You must enter exactly the same sequence of characters in each field. ")
    theform.RePassword.focus()
    return false
  }

    if(theform.PwdQn.value.length < 2)
  {
    alert("Please enter your secret question.")
    theform.PwdQn.focus()
    return false
  }

   if(theform.PwdAn.value.length < 2)
  {
    alert("Please enter your secret answer.")
    theform.PwdAn.focus()
    return false
  }

     if(theform.Email.value.length < 1)
  {
    alert("Please enter your e-mail address.")
    theform.Email.focus()
    return false
  }
  if(theform.Email.value.indexOf("@") == -1)
  {
    alert("Your e-mail address seemd wrong. Please re-enter your current email address, e.g. maya@ecplaza.net ")
    theform.Email.focus()
    return false
  }

    if(theform.MemberName.value.length < 1)
  {
    alert("Please enter your full name. ")
    theform.MemberName.focus()
    return false
  }

     if(theform.CompanyName.value.length < 2)
  {
    alert("Please enter your company name. ")
    theform.CompanyName.focus()
    return false
  }


   if(theform.CompanyAddr.value.length < 8)
  {
    alert("Please enter the your address.")
    theform.CompanyAddr.focus()
    return false
  }


      if(theform.CompanyZIPCode.value.length < 1)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -