cant seem to get this to post to my db, please help! thanks...
form:
<form name="form1" method="post" action="process.php">
<table width="450" border="0">
<tr>
<td width="121">Last Name: </td>
<td width="217"><input name="lastname" type="text" id="lastname" size="20"></td>
</tr>
<tr>
<td width="121">Email Address: </td>
<td width="217"><input name="email" type="text" id="email" size="20"></td>
</tr>
<tr>
<td>ID Number: </td>
<td><input name="id" type="text" id="id" size="20" maxlength="9"></td>
</tr>
<tr>
<td>Site: </td>
<td> <select name="site" size="4" multiple><option value="nyc">New York City<option value="flo">Florence<option value="lon">London<option value="par">Paris</select></td>
</tr>
<tr>
<td height="35" colspan="2"><div align="center">
<input type="submit" name="Submit" value="Submit">
</div></td>
</tr>
</table>
</form>
process.php:
<?php
// Pick up the form data and assign it to variables
$lastname = $POST['lastName'];
$email = $POST['email'];
$id = $POST['id'];
$site = $POST['site'];
// Open database connection
$conn = mysql_pconnect('location', 'user','password') or die(mysql_error());
mysql_select_db('databasename', $conn) or die(mysql_error());
// Insert data
mysql_query = "INSERT INTO 'tablename' (lastName, email, id, site);
VALUES ('$lastName', '$email', '$id', '$site')";
or die("mysql_error());
// Close connection
mysql_close($conn);
// Redirect
header("Location: thankyou.html");
?>