Well, heres my process file:
//Database connection
$user="";
$host="";
$password="";
$database = "";
//If fail to connect, error
$connection = mysql_connect($host,$user,$password)
or die ("Couldn't connect to server");
$db = mysql_select_db($database,$connection);
//Insert information submitted into database
$date = Date("y-m-d H:i:s");
$query="INSERT INTO guestbook (name,email,url,message,dateadded) VALUES
('$name','$email','$url','$message','$date')";
//If cant insert data, error
$result=mysql_query($query)
or die ("Couldn't execute query");
echo "just a message to redirect"
That file is processed once the user clicks cubmit, then it redirects to the gustbook entries...im still working out how to use if and else to make it one file.