?? add1.php
字號:
<?php
/*
文件名稱: reg.php
功能說明: 用戶注冊
創(chuàng)建日期: 03/09/12
*/
include "../inc/header.inc.php";
include "../inc/class_db_mysql.php";
include "../inc/func.inc.php";
$db = new db_sql();
$db1 = new db_sql();
$ip = $_SERVER['REMOTE_ADDR']; //取當前用戶的IP
//$regtime = time(); //當前時間
$regtime=date("Ymd"); //上面的時間格式不好,2003/11/29改
if($step_LY=="ok"){
$db->query("select euid from en_user where loginname='$loginname'");
$db1->query("select userid from biz_user where user='$loginname'");
if($db->next_record() || $db1->next_record()){
$reason="<font color=blue><b>sorry! the member id is exit!</b></font>";
$write="no";
}else{
$write="ok";
}
if($write=="ok"){
$db->query("insert into en_user (loginname,password,company,ifsb,linkman,sex,email,email2,tel,fax,address,zip,city,state,country,biztype,product,homepage,overview,industry,regtime,lasttime,regip,lastip)
values ('$loginname','$password','$company','$ifsb','$linkman','$sex','$email','$email2','$tel','$fax','$address','$zip','$city','$state','$country','$biztype','$product','$homepage','$overview','$industry','$regtime','$regtime','$ip','$ip')");
}
}
?>
<?php include '../inc/en_inc_head.php'; ?>
<body topmargin="0" leftmargin="0" bgcolor="#FFFFFF" >
<!--<?php include '../inc/en_inc_nav_head.php'; ?>-->
<?php
if($write=="no" || !isset($write)){
if($write=="no"){
}
?>
<table align=center border=0 cellpadding=0 cellspacing=0 width=756>
<form name="reg" action="<?php echo $PHP_SELF; ?>" method="post" onSubmit="return checkform(this)">
<tr align=middle>
<td valign=top> <table border=0 cellpadding=0 cellspacing=0 width="90%">
<tbody>
<tr>
<td bgcolor=#c6d9ec height=20> <b><font color=#cc0000
face=Wingdings>1</font> New Company Information </b>
<font color=#da3830 style="FONT-SIZE: 8pt">(<font
color=#cc0000>*</font> Required Information)</font></td>
</tr>
<tr bgcolor=#999999>
<td height=1><spacer type="block" width="1" height="1"></td>
</tr>
<tr align=middle bgcolor=#f3f8fc>
<td><?php echo"$reason"; ?><br><br> <table border=0 cellpadding=2 cellspacing=0 width="80%">
<tbody>
<tr>
<td align=right>Member ID: </td>
<td><input name=loginname size=36 value="<?php echo "$loginname";?>">
<font color=#cc0000>*</font></td>
</tr>
<tr>
<td align=right>Password: </td>
<td><input name=password type="password" size=36 value="222222">
<!-- <input name=password type="password" size=36 value="<?php echo "$password";?>"> -->
<font color=#cc0000>*</font></td>
</tr>
<tr>
<td align=right>Verify Password:
</td>
<td><input name=password1 type="password" size=36 value="222222">
<!-- <input name=password1 type="password" size=36 value="<?php echo "$password";?>"> -->
<font color=#cc0000>*</font></td>
</tr>
<tr>
<td align=right width="35%">Company
Name: </td>
<td width="150"><input name=company size=45 value="<?php echo "$company";?>">
<font
color=#cc0000>*</font></td>
</tr>
<tr>
<td align=right>Join ec188 as
a : </td>
<td> <input type="radio" name="ifsb" value="s" >
Seller <input type="radio" name="ifsb" value="b" checked>
Buyer <input type="radio" name="ifsb" value="sab" >
Buyer&Seller <font color=#cc0000> *</font></td>
<!--
<input type="radio" name="ifsb" value="s" <?php if($ifsb == "s") echo "checked"; ?>>
Seller <input type="radio" name="ifsb" value="b" <?php if($ifsb == "b") echo "checked"; ?>>
Buyer <input type="radio" name="ifsb" value="sab" <?php if($ifsb == "sab") echo "checked"; ?>>
Buyer&Seller <font color=#cc0000> *</font></td> -->
</tr>
<tr>
<td align=right>Contact Person:
</td>
<td><input name=linkman size=36 value="<?php echo "$linkman";?>">
<font color=#cc0000>*</font></td>
</tr>
<tr>
<td align=right> </td>
<td><input name=sex type=radio value=Mr. <?php if($sex == "Mr") echo "checked"; ?>>
Mr. <input name=sex type=radio value=Ms. <?php if($sex == "Ms") echo "checked"; ?>>
Ms.</td>
</tr>
<tr>
<td align=right>Current Email:
</td>
<td><input name=email size=36 value="<?php echo "$email";?>">
<font color=#cc0000>*</font>
</td>
</tr>
<tr>
<td align=right>Alternate Email:
</td>
<td><input name=email2 size=36 value="<?php echo "$email2";?>">
</td>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -