Hey guys I can not figure out why this is not working. I keep getting the following error:
"Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in c:\inetpub\wwwroot\vlogs\process.php on line 8"
Here is my code
<---------HTML CODE-------->
<html>
<title></title>
<head>
</head>
<body>
<form method="POST" action="process.php">
<table style='width:60%'>
<tr>
<td style='width:30%'>Login Name: </td>
<td style='width:70%'>
<input class='tbox' type='text' name='name' size='40' maxlength='30' />
</td>
</tr>
<tr>
<td style='width:30%'>Password: </td>
<td style='width:70%'>
<input class='tbox' type='password' name='password1' size='40' maxlength='20' />
</td>
</tr>
<tr>
<td style='width:30%'>Re-type Password: </td>
<td style='width:70%'>
<input class='tbox' type='password' name='password2' size='40' maxlength='20' />
</td>
</tr>
<tr>
<td style='width:30%'>Email Address: </td>
<td style='width:70%'>
<input class='tbox' type='text' name='email' size='60' maxlength='100' />
</td>
</tr>
<tr style='vertical-align:top'>
<td colspan='2' style='text-align:center'>
<br />
<input class='button' type='submit' name='register' value='Register' />
<br />
</td>
</tr>
</table>
</form>
</body>
</html>
<--------PHP Code-------->
<HTML>
<BODY>
<?
$passwordcrypt = md5($_POST['password1']);
$connect = mysql_connect("localhost", "web_admin", "trin1784") or die(mysql_error());
$db = mysql_select_db("vlogs") or die(mysql_error());
$query = "INSERT INTO users (user_name, user_password, user_email) VALUES ($POST['name'], '$passwordcrypt', $POST['email'])";
$result = mysql_query($query) or die(mysql_error());
echo "Thank you";
?>
</BODY>
</HTML>
Any help you can give me would be great.