Add an expert

Add expert

"; echo "
"; echo "Error: Data was not added
"; echo ""; echo $errormsg; echo ""; //Error message ends } else { //Edit the entry $query_edit="INSERT INTO areas (title, firstname, surname, campus, faculty, school, countrycode, areacodeoffice, ext, areacodehome, homephone, mobile, email, prefcontact, otherlang, area1, area2, area3, area4, area5, area6, area7, area8) VALUES ('".$_POST["title"]."', '".$_POST["firstname"]."', '".$_POST["surname"]."' , '".$_POST["campus"]."', '".$_POST["faculty"]."', '".$_POST["school"]."', '".$_POST["cc"]."', '".$_POST["acw"]."', '".$_POST["ext"]."', '".$_POST["ach"]."', '".$_POST["homephone"]."', '".$_POST["mobile"]."', '".$_POST["email"]."', '".$_POST["prefcontact"]."', '".$_POST["otherlang"]."', '".$_POST["area1"]."', '".$_POST["area2"]."', '".$_POST["area3"]."', '".$_POST["area4"]."', '".$_POST["area5"]."', '".$_POST["area6"]."', '".$_POST["area7"]."', '".$_POST["area8"]."')" ; echo "Data successfully added. Add a new expert."; $result=mysql_query($query_edit); } echo "

"; echo "

"; } //Get the user entered values so that the user does not have type everything $title = $_POST["title"]; $firstname = $_POST["firstname"]; $surname = $_POST["surname"]; $email = $_POST["email"]; $campus = $_POST["campus"]; $faculty = $_POST["faculty"]; $school = $_POST["school"]; $cc = $_POST["cc"]; $acw = $_POST["acw"]; $ext = $_POST["ext"]; $ach = $_POST["ach"]; $homephone = $_POST["homephone"]; $mobile = $_POST["mobile"]; $email = $_POST["email"]; $prefcontact = $_POST["prefcontact"]; $otherlang = $_POST["otherlang"]; $area1 = $_POST["area1"]; $area2 = $_POST["area2"]; $area3 = $_POST["area3"]; $area4 = $_POST["area4"]; $area5 = $_POST["area5"]; $area6 = $_POST["area6"]; $area7 = $_POST["area7"]; $area8 = $_POST["area8"]; ///Add Process ?>