I have found this a sticky problem, since running into it. Would love to know whether you can help me spot the error in posting this form to a database, it connect but a parameters error keeps reoccurring.
<?php
mysql_select_db("members");
if(isset ($_POST['submit'])){
$f_name = $_POST['first_name'];
$l_name = $_POST['last_name'];
$user_email = $_POST['email'];
$query = "INSERT into members (first_name,last_name,email) VALUES ('$f_name','$l_name','$user_email')";
if (!mysqli_query ($conn,$sqlinsert)) {
die('error inserting new record');
} // end of nested if state
$newrecord = "1 record added success";
} // end of 1st if state