require("../dc/defines.php"); $con = mysql_connect(defhost,defusername,defpassword); mysql_select_db(defdatabase); $productSelectList = productSelectList2(getProducts(),productid,"productselectlist"); if ( sizeof($_POST) > 3 ){ $SQL = "INSERT INTO experience (firstname,lastname,email,city,birthday,birthmonth,birthyear,experience,productid) ". "VALUES('".$_POST["firstName"]."','".$_POST["lastName"]."','".$_POST["email"]."','".$_POST["city"]."',".$_POST["txtDD"].",".$_POST["txtMM"].",".$_POST["txtYYYY"].",'".$_POST["testimonial"]."',".$_POST[productid].")"; //echo $SQL; $query = mysql_query($SQL); if ( strtolower($_POST["olay_optin"])=="true" ){ insertPerson($_POST); } if ( !$query ){ echo mysql_error(); }else{ $message = "Deneyiminiz tarafımıza ulaşmıştır, teşekkür ederiz..."; ?> exit; } } $message = urldecode($_GET["message"]); ?>