<form action="formresult.php" method="post">
<table><tr><td>
Username<br></td><td><input type="text" name="username" size="14" value="">
<br></td></tr><tr><td>
Password<br></td><td>
<input type="password" name="password" size="10" value="">
<br></td></tr><tr><td>
First Name <br></td><td>
<input type="text" name="firstName" size="30" value=""><br></td></tr><td>Last Name <br></td>
<td><input type="text" name="lastName" size="30" value=""><br></td></tr>
<tr><td>Email Address <br></td>
<td><input type="text" name="emailAddress" size="40" value=""></td></tr></table><input type="submit" value="send">
</form>
formresult.php..............
this stops at line 4
if(isset($HTTP_POST_VARS['submit'])){
if(strlen($HTTP_POST_VARS['username'])>0){
require_once ("/home/shopping/public_html/golf/connect.inc")
$username=$HTTP_POST_VARS['username']; //line 4
$password=$HTTP_POST_VARS['password'];
$firstName=$HTTP_POST_VARS['firstName'];
$lastName=$HTTP_POST_VARS['lastName'];
$emailAddress=$HTTP_POST_VARS['emailAddress'];
$whoCreated=$HTTP_POST_VARS['username'];
$whoUpdated=$HTTP_POST_VARS['username'];
$whenUpdated = time();
$query = "INSERT INTO members VALUES ('','{$username}','{$password}','{$firstName}','{$lastName}','{$emailAddress}','{$whoCreated}',{$whoUpdated}','{$whenUpdated}')";
mysql_query($query);
if (mysql_error())
echo mysql_error();
mysql_close();
}
}
where am I going wrong? Any help would be appreciated