Online Registration
- Registration is FREE!
- All participants are required to register online to facilitate prompt processing.
- Online Registration deadline: 2018/10/10
if(isset($_POST[Submit])){ //------修改內容
function ccStr($str){
$str =substr( strip_tags(addslashes(trim($str))),0,40);
return str_replace(array("\t"," ","\n","\r\n","'"),'',$str);
}
//ob_start();
include_once("app_obj.php");
$obj = new cc_use_db;
$time = date("ndHis");
$obj->title=$_POST[title];
$obj->c_name=ccStr($_POST[c_name]);
$obj->lastname=ccStr($_POST[lastname]);
$obj->firstname=ccStr($_POST[firstname]);
$obj->affliation=ccStr($_POST[affliation]);
$obj->organization=$_POST[organization];
$obj->t1=ccStr($_POST[t1]);
$obj->phone=ccStr($_POST[phone]);
$obj->Presenting=ccStr($_POST[Presenting]);
$obj->email=ccStr($_POST[email]);
$obj->address=ccStr($_POST[address]);
$obj->vegetarian=ccStr($_POST[vegetarian]);
$obj->day1=ccStr($_POST[day1]);
$obj->day2=ccStr($_POST[day2]);
$obj->day1v=ccStr($_POST[day1v]);
$obj->day2v=ccStr($_POST[day2v]);
$obj->day1dv=ccStr($_POST[day1dv]);
$obj->day2dv=ccStr($_POST[day2dv]);
$obj->day1_dinner=ccStr($_POST[day1_dinner]);
$obj->day2_dinner=ccStr($_POST[day2_dinner]);
$obj->add_sql = "INSERT INTO 2018_reg_conference ";
$obj->add_sql .= "values ('$time', '$obj->c_name', '$obj->lastname', '$obj->firstname', '$obj->affliation', '$obj->organization', '$obj->t1$obj->title', '$obj->phone', '$obj->Presenting', '$obj->email', '$obj->address', '$obj->vegetarian', '$obj->day1 $obj->day1v','$obj->day1_dinner $obj->day1dv','$obj->day2 $obj->day2v', '$obj->day2_dinner','2018symposium')";
if ($obj->Add()){
echo "It's OK.";
echo "post1";
header('Location: RegistrationOK.php');
}else{
echo "
".$obj->add_sql ."
";
echo mysql_error();
echo "post2";
}
echo "post";
}else{
?>