🙂 hi i have been stuck on this for hours, can someone give me a hand? 😃 anyways here she is:
newuser.html
///////////////////
<form method="POST" action="newuser.php">
<div align="left"><p><font face="BankGothic Md BT">Name</font>
<input type="text" name="name" size="14">
<br>
<div align="left"><p><font face="BankGothic Md BT">E-Mail</font>
<input type="text" name="email" size="14">
<br>
<div align="left"><p><font face="BankGothic Md BT">Phone #</font>
<input type="text" name="phonenum" size="14">
<br><input type="submit" value="Submit"></p>
</div></form>
newuser.php
////////////////////
<?
$db = mysql_connect("localhost", "root");
mysql_select_db("mydb",$db);
echo "Name: '$POST['name']' Email: '$POST['email']' Phonenumber: '$POST['phonenum']'";
mysql_query("INSERT INTO test VALUES ('$POST['name']', '$POST['email']', $POST['phonenum']', NULL);",$db);
echo "done";
mysql_close();
?>
the error
////////////////////
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/html/newuser.php on line 5