/* if(isset($_REQUEST['txtTitle'])){ $Title = str_replace('"',"'",$_REQUEST['txtTitle']); } else { $Title = ""; } if(isset($_REQUEST['TxtELastName1'])){ $eLastName1 = str_replace('"',"'",$_REQUEST['TxtELastName1']); } else { $eLastName1 = ""; } if(isset($_REQUEST['TxtEFirstName1'])){ $eFirstName1 = str_replace('"',"'",$_REQUEST['TxtEFirstName1']); } else { $eFirstName1 = ""; } if(isset($_REQUEST['txtMI1'])){ $eMI1 = str_replace('"',"'",$_REQUEST['txtMI1']); } else { $eMI1 = ""; } if(isset($_REQUEST['txtAge1'])){ $sAge1 = str_replace('"',"'",$_REQUEST['txtAge1']); } else { $sAge1 = ""; } if(isset($_REQUEST['txtGrade1'])){ $eGrade1 = str_replace('"',"'",$_REQUEST['txtGrade1']); } else { $eGrade1 = ""; } if(isset($_REQUEST['txtAddress1'])){ $eAddress1 = str_replace('"',"'",$_REQUEST['txtAddress1']); } else { $eAddress1 = ""; } if(isset($_REQUEST['txtCity1'])){ $eCity1 = str_replace('"',"'",$_REQUEST['txtCity1']); } else { $eCity1 = ""; } if(isset($_REQUEST['txtZip1'])){ $eZip1 = str_replace('"',"'",$_REQUEST['txtZip1']); } else { $eZip1 = ""; } if(isset($_REQUEST['txtTelephone1'])){ $eTelephone1 = str_replace('"',"'",$_REQUEST['txtTelephone1']); } else { $eTelephone1 = ""; } if(isset($_REQUEST['rddivision'])){ $rddivision = str_replace('"',"'",$_REQUEST['rddivision']); } else { $rddivision = ""; } if(isset($_REQUEST['TxtELastName2'])){ $eLastName2 = str_replace('"',"'",$_REQUEST['TxtELastName2']); } else { $eLastName2 = ""; } if(isset($_REQUEST['TxtEFirstName2'])){ $eFirstName2 = str_replace('"',"'",$_REQUEST['TxtEFirstName2']); } else { $eFirstName2 = ""; } if(isset($_REQUEST['txtMI2'])){ $eMI2 = str_replace('"',"'",$_REQUEST['txtMI2']); } else { $eMI2 = ""; } if(isset($_REQUEST['txtAge2'])){ $sAge2 = str_replace('"',"'",$_REQUEST['txtAge2']); } else { $sAge2 = ""; } if(isset($_REQUEST['txtGrade2'])){ $eGrade2 = str_replace('"',"'",$_REQUEST['txtGrade2']); } else { $eGrade2 = ""; } if(isset($_REQUEST['txtAddress2'])){ $eAddress2 = str_replace('"',"'",$_REQUEST['txtAddress2']); } else { $eAddress2 = ""; } if(isset($_REQUEST['txtCity2'])){ $eCity2 = str_replace('"',"'",$_REQUEST['txtCity2']); } else { $eCity2 = ""; } if(isset($_REQUEST['txtZip2'])){ $eZip2 = str_replace('"',"'",$_REQUEST['txtZip2']); } else { $eZip2 = ""; } if(isset($_REQUEST['txtTelephone2'])){ $eTelephone2 = str_replace('"',"'",$_REQUEST['txtTelephone2']); } else { $eTelephone2 = ""; } if(isset($_REQUEST['TxtELastName3'])){ $eLastName3 = str_replace('"',"'",$_REQUEST['TxtELastName3']); } else { $eLastName3 = ""; } if(isset($_REQUEST['TxtEFirstName3'])){ $eFirstName3 = str_replace('"',"'",$_REQUEST['TxtEFirstName3']); } else { $eFirstName3 = ""; } if(isset($_REQUEST['txtMI3'])){ $eMI3 = str_replace('"',"'",$_REQUEST['txtMI3']); } else { $eMI3 = ""; } if(isset($_REQUEST['txtAge3'])){ $sAge3 = str_replace('"',"'",$_REQUEST['txtAge3']); } else { $sAge3 = ""; } if(isset($_REQUEST['txtGrade3'])){ $eGrade3 = str_replace('"',"'",$_REQUEST['txtGrade3']); } else { $eGrade3 = ""; } if(isset($_REQUEST['txtAddress3'])){ $eAddress3 = str_replace('"',"'",$_REQUEST['txtAddress3']); } else { $eAddress3 = ""; } if(isset($_REQUEST['txtCity3'])){ $eCity3 = str_replace('"',"'",$_REQUEST['txtCity3']); } else { $eCity3 = ""; } if(isset($_REQUEST['txtZip3'])){ $eZip3 = str_replace('"',"'",$_REQUEST['txtZip3']); } else { $eZip3 = ""; } if(isset($_REQUEST['txtTelephone3'])){ $eTelephone3 = str_replace('"',"'",$_REQUEST['txtTelephone3']); } else { $eTelephone3 = ""; } if(isset($_REQUEST['chk1'])){ $chk1 = str_replace('"',"'",$_REQUEST['chk1']); } else { $chk1 = ""; } if(isset($_REQUEST['selYesNo'])){ $srcBool = str_replace('"',"'",$_REQUEST['selYesNo']); } else { $srcBool = ""; } if(isset($_REQUEST['selTableFloor'])){ $tableFloor = str_replace('"',"'",$_REQUEST['selTableFloor']); } else { $tableFloor = ""; } if(isset($_REQUEST['txtTLastName'])){ $tLastName = str_replace('"',"'",$_REQUEST['txtTLastName']); } else { $tLastName = ""; } if(isset($_REQUEST['txtTFirstName'])){ $tFirstName = str_replace('"',"'",$_REQUEST['txtTFirstName']); } else { $tFirstName = ""; } if(isset($_REQUEST['txtTSchool'])){ $tSchool = str_replace('"',"'",$_REQUEST['txtTSchool']); } else { $tSchool = ""; } if(isset($_REQUEST['txtTAddress'])){ $tAddress = str_replace('"',"'",$_REQUEST['txtTAddress']); } else { $tAddress = ""; } if(isset($_REQUEST['txtTCity'])){ $tCity = str_replace('"',"'",$_REQUEST['txtTCity']); } else { $tCity = ""; } $tZip = str_replace('"',"'",$_REQUEST['txtTZip']); } else { $tZip = ""; } $tTel = str_replace('"',"'",$_REQUEST['txtTTel']); } else { $tTel = ""; } if(isset($_REQUEST['txtTFax'])){ $tFax = str_replace('"',"'",$_REQUEST['txtTFax']); } else { $tFax = ""; } */ //if(isset($_REQUEST['btnSave'])){ // Make a MySQL Connection mysql_connect("localhost", "hogeb", "iwn2msn!") or die(mysql_error()); //mysql_connect("localhost", "root", "") or die(mysql_error()); //mysql_connect("localhost", "akber", "") or die(mysql_error()); mysql_select_db("sefhforms") or die(mysql_error()); //mysql_select_db("form") or die(mysql_error()); // Insert a row of information into the table "example" $sqlInsert = "insert into indprjdetails_table( indprj_title, indprj_exhibit_lastname, indprj_exhibit_firstname, indprj_exhibit_MI, indprj_exhibit_Age, indprj_exhibit_grade, indprj_exhibit_address, indprj_exhibit_city, indprj_exhibit_zip, indprj_exhibit_telephone, indprj_exhibit_division, indprj_category, indprj_approved, indprj_tableorfloor, indprj_teacher_lastname, indprj_teacher_firstname, indprj_teacher_email, indprj_teacher_school, indprj_teacher_address, indprj_teacher_city, indprj_teacher_zip, indprj_teacher_telephone, indprj_teacher_fax, indprj_teacher_district) values('$_REQUEST[txtTitle]', '$_REQUEST[txtExLastName1]', '$_REQUEST[txtExFirstName1]', '$_REQUEST[txtExMI1]', '$_REQUEST[txtExAge1]', '$_REQUEST[cboExGrade1]', '$_REQUEST[txtExAddr1]', '$_REQUEST[txtExCity1]', '$_REQUEST[txtExZip1]', '$_REQUEST[txtExTel1]', '$_REQUEST[rddivision]', '$_REQUEST[rdCat]', '$_REQUEST[cboApproved]', '$_REQUEST[cboMountPos]', '$_REQUEST[txtTcLastName]', '$_REQUEST[txtTcFirstName]', '$_REQUEST[txtTcEmail]', '$_REQUEST[txtTcSchool]', '$_REQUEST[txtTcAddr]', '$_REQUEST[txtTcCity]', '$_REQUEST[txtTcZip]', '$_REQUEST[txtTcTel]', '$_REQUEST[txtTcFax]', '$_REQUEST[txtTcDistrict]')"; //echo $sqlInsert ; mysql_query($sqlInsert) or die(mysql_error()); //} ?>