# data[].attributes.body
<!--連接資料庫-->
<?php

$db_link = @mysqli_connect('localhost','root','1234','mydb');

if(!$db_link)

{

die('資料庫選擇失敗');

}

?>

# data[].attributes.body
<?php

echo

"

<form method='post' action=insert.php>

<font-size=24pt>註冊</font><p>

姓名:<input type='text' name=name size=10></br>

帳號:<input type='text' name=users size=10></br>

密碼:<input type='password' name=pwd size=10></br>

<input type='submit' name=insert value='註冊'>

</form>

";

echo

"

<form method='post' action=connect.php>

<font-size=24pt>登入</font><p>

帳號:<input type='text' name=users size=10></br>

密碼:<input type='password' name=pwd size=10></br>

<input type='submit' name=login value='登入'>

</form>

";

?>