head 1.1; access; symbols; locks root:1.1; strict; comment @# @; 1.1 date 2004.03.09.19.56.23; author root; state Exp; branches; next ; desc @@ 1.1 log @Initial revision @ text @ JHU- Bulletin Board 1
", " "); $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("www","training","fah2Yoon") or die("Unable to connect to SQL server"); mysql_select_db("training") 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; } } ?>
A Continuing Education Forum for IEC Professionals

Learning Cafe
Alumni Bulletin Board | Faculty Bulletin Board
(Scroll down to view posted comments)
Please answer all fields
Your Name:
Your Email:
Enter Message:


 (Please hit submit only once per entry.)
people have left a message.

Name:
Email:
Date:


@