我的脚本有问题:S
这是错误:解析错误:语法错误,意外的文件结束
这是完整的代码.我搜索了没有封闭的小东西或其他东西,但没有找到任何:S我希望你们中的一些人能找到问题.
<?php
include "header.php";
include "menu.php";
?>
<div class="wrapper">
<table width=100%>
<td valign=top width=230px>
<div class="login">
<form name="register" method="post" action="$_SERVER[PHP_SELF]" onsubmit="return validateregister()">
<input type="text" name="username" placeholder="Username"/><br />
<input type="password" name="password" placeholder="Password"/><br />
<input type="password" name="passwordagain" placeholder="Password again"/><br />
<input type="text" name="email" placeholder="E-mail"/><br />
<input type="text" name="mcname" placeholder="Minecraft Name"/><br />
<?php
$captchaquery = mysql_query('SELECT * FROM general');
$captcha = mysql_fetch_array($captchaquery);
if($captcha['captcha'] == 'enabled')
{
require_once('functions/recaptchalib.php');
$publickey = $captcha['captchapublic'];
echo recaptcha_get_html($publickey);
}
?>
<input class="btn" type="submit" name="register" value="Register" />
</form> …Run Code Online (Sandbox Code Playgroud)