Guest book

", " "); $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("db2.pair.com","tator_w","password") or die("Unable to connect to SQL server"); mysql_select_db("tator_awtrey") 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; } } ?>

Add A Message

Please answer all fields

Your Name:       
Your Email:      

Enter Message:





Name:

Email:


 

  Welcome to PHP-Nuke! Welcome to PHP-Nuke!