", " "); $this = strtr($this, "<", " "); $this = strtr($this, "|", " "); $$key = $this; } //////////////////////////////// // This will catch if someone is trying to submit a blank // or incomplete form. //////////////////////////////// if ($name && $email && $message ) { //////////////////////////////// // This is the meat of the query that updates the guests table //////////////////////////////// $query = "INSERT INTO guests "; $query .= "(guest_id, guest_name, "; $query .= "guest_email, guest_time, guest_message) "; $query .= "values(0000,'$name','$email',NULL,'$message')"; mysql_pconnect("host","user","password") or die("Unable to connect to SQL server"); mysql_select_db("dbasename") or die("Unable to select database"); mysql_query($query) or die("Insert Failed!"); } else { //////////////////////////////// // If they didn't include all the required fields set a variable // and keep going. //////////////////////////////// $notall = 1; } } ?> Fife School of Choi Kwang Do
Home > Guestbook
 
CKD: Fife Guestbook
 

Your Name:       
Your Email: Enter Message:
View Guestbook
 
Home - Why Choose CKD? - Gradings - Events - Contact Us - Guestbook
Why Choose CKD? Gradings Events Contact Us Guestbook