Parse error: syntax error, unexpected T_ECHO in /home/a4384209/public_html/register.php on line 16
I need help with another thing... I don't know what this is!!! 😃
That's my script, but I tried everything, maybe not everything, but what is wrong!!
😮
<?php
include ('mysql.php');
if (isset ($POST['submit'])) {
$mysql_user = mysql_escape_string($POST['username']);
$mysql_password = mysql_escape_string(sha1($_POST['password']));
if(!empty ($mysql_user) && !empty ($mysql_password)){
$sql = mysql_query ("INSERT INTO user (
user_id,username,user_password,user_regdate)
VALUES (
'0','".$mysql_user."','".$mysql_password."','".time()."')
")
echo 'Congragulations! You are now registered!';..
) else (
echo 'You must enter a username and password!';
}
) else (
echo '<form action="register.php" method="post">
Username: <input type="text" name="username" /><br />
Password: <input type="password" name="password" /><br />
<input type="submit" name="submit" value="Register" />
</form>
)
?>