01.
echo
'<form name=
"form1"
method=
"post"
action=
"?do=register"
>
02.
<h1>Registration</h1>
03.
<table width=
"584"
border=
"0"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
04.
<tr>
05.
<td width=
"136"
height=
"25"
><strong>Username</strong></td>
06.
<td width=
"202"
height=
"25"
><label>
07.
<input name=
"r_username"
type=
"text"
class
=
"fixedloginform"
id=
"r_username"
maxlength=
"20"
>
08.
</label></td>
09.
<td width=
"246"
> </td>
10.
</tr>
11.
<tr>
12.
<td height=
"25"
><strong>Password</strong></td>
13.
<td height=
"25"
><input name=
"r_password"
type=
"password"
class
=
"fixedloginform"
id=
"r_password"
maxlength=
"30"
></td>
14.
<td rowspan=
"2"
><div align=
"right"
><img src=
"captcha/captcha.php"
></div></td>
15.
</tr>
16.
<tr>
17.
<td height=
"25"
><strong>Password Confirm </strong></td>
18.
<td height=
"25"
><input name=
"r_password2"
type=
"password"
class
=
"fixedloginform"
id=
"r_password2"
maxlength=
"30"
></td>
19.
</tr>
20.
<tr>
21.
<td height=
"25"
><strong>Email</strong></td>
22.
<td height=
"25"
><input name=
"r_email"
type=
"text"
class
=
"fixedloginform"
id=
"r_email"
maxlength=
"255"
></td>
23.
<td><div align=
"right"
>
24.
<label>
25.
<input name=
"r_code"
type=
"text"
id=
"r_code"
class
=
"fixedloginform"
>
26.
</label>
27.
</div></td>
28.
</tr>
29.
<tr>
30.
<td height=
"25"
><strong>Type</strong></td>
31.
<td height=
"25"
><label>
32.
<select name=
"r_type"
id=
"r_type"
onChange=
"javascript:docheckmem();"
>
33.
<option value=
"0"
>กรุณาเลือก</option>
34.
<?php
35.
mysql_query(
"SET NAMES UTF8"
);
36.
$memsql
= mysql_query(
"SELECT * FROM `member_type` ORDER BY `id` ASC;"
);
37.
while
(
$memrow
= mysql_fetch_array(
$memsql
))
38.
{
39.
if
(
$memrow
[
'quota'
] == -1)
40.
{
41.
$quota
=
"ไม่จำกัด"
;
42.
}
else
{
43.
$quota
=
$memrow
[
'quota'
];
44.
}
45.
echo
"<option value=\""
.
$memrow
[
'id'
].
"\">"
.
$memrow
[
'name'
].
"</option>"
;
46.
}
47.
?>
48.
</select>
49.
</label></td>
50.
<td> </td>
51.
</tr>
52.
53.
<tr>
54.
<td height=
"25"
align=
"center"
><label></label></td>
55.
<td height=
"25"
colspan=
"2"
align=
"center"
><div id=
"info"
></div></td>
56.
</tr>
57.
<tr>
58.
<td height=
"25"
colspan=
"3"
align=
"center"
><input name=
"Button3"
type=
"button"
class
=
"loginbutton"
onClick=
"JavaScript:doregister();"
value=
"Register"
></td>
59.
</tr>
60.
</table>
61.
</form>
62.
<h1>';