$title = "SUBMIT AN EVENT TO Q PAGES"; include "$DOCUMENT_ROOT/header.htm"; include "$DOCUMENT_ROOT/include/common.inc"; if (!$task) { $task="first"; } ?>
| if ($task=="first") { ?> } elseif ($task=="process") { require "/home/httpd/reynolds/security/.mysql.info"; mysql_select_db("qpages"); $event_date = intval($year_date)*10000+intval($month_date)*100+intval($day_date); $sql = "INSERT into events (name,organisation,ph,email,event_name,event_date,event_venue,event_time,event_cost,contact_ph,xtra_text) VALUES ('$name','$organisation','$ph','$email','$event_name','$event_date','$event_venue','$event_time','$event_cost','$contact_ph','$xtra_text')"; $result = mysql_query("$sql"); if ($result==FALSE) { echo "Error in database. Please contact Database Administrator."; } else { echo "Thanks $Name your event details have been sent."; $email_address="info@qpages.com.au"; mail("$email_address", "Event Submited", "An event has been submitted through the website./n/nPlease visit the admin section or the events section of the website to ensure that the details are correct", "From: $email_address\nReply-To: $email_address\nReturn-Path: $email_address\nX-Mailer: PHP/" . phpversion()); } } ?> | ||||||||||