'; $page_title = "Rheinmainsport.de | Verein eintragen"; include('includes/page_start.php'); ?>








"; $f = $_SERVER['DOCUMENT_ROOT'] . "/" . "images/1200x800/" . $thumb_new_name ; // $_FILES['pictures']['name']; $out = fopen($f,"w"); if ($out) { while (!feof ($file)) { fputs($out,fgets($file)); } fclose($out); } fclose($file); } else { } } } //unset($_SESSION); //unset($_POST); $session_title = isset($_SESSION['title']) ? $_SESSION['title'] : ""; $title = isset($_POST['title']) ? $_POST['title'] : $session_title; $_SESSION['title'] = $title; $session_url = isset($_SESSION['url']) ? $_SESSION['url'] : ""; $url = isset($_POST['url']) ? $_POST['url'] : $session_url; $_SESSION['url'] = $url; $agbs = isset($_POST['agbs']) ? $_POST['agbs'] : ""; $antispam = isset($_POST['antispam']) ? $_POST['antispam'] : ""; $captcha_spam = isset($_SESSION['captcha_spam']) ? $_SESSION['captcha_spam'] : ""; //Pflichtfelder //define $action $action = isset($_POST['action']) ? $_POST['action'] : ''; //Define variable $headline_empty and check if the form has been sent and if the required variable has a value if not add class .add_error $title_empty = ""; if ($title == "" & $action == "upload_form_sent"){ $title_empty = ' has_error'; } //Define variable $antispam_empty and check if the form has been sent and if the required variable has a value if not add class .add_error $antispam_empty = ""; if ($antispam == "" & $action == "upload_form_sent"){ $antispam_empty = ' has_error'; } //Define variable $news and check if the form has been sent and if the required variable has a value if not add class .add_error $url_empty = ""; if ($url == "" & $action == "upload_form_sent"){ $url_empty = ' has_error'; } if ($thumb_new_name == "" & $action == "upload_form_sent"){ $pictures_empty = ' has_error'; } //Define variable $agbs and check if the form has been sent and if the required variable has a value if not add class .add_error $agbs_empty = ""; if ($agbs != "on" & $action == "upload_form_sent"){ $agbs_empty = ' checkbox_error'; } //Define variable $pictures_empty and check if the form has been sent and if the required variable has a value if not add class .add_error $pictures_empty = ""; if ($agbs != "on" & $action == "upload_form_sent"){ $pictures_empty = ' has_error'; } $alert = ""; //Alert if required fields are missing! if(($action == "upload_form_sent") & ($title == "" | $url == "" | $thumb_new_name=="" | $agbs == "on" | $antispam != $captcha_spam)){ $alert = '
Bitte, füllen Sie alle Pflichtfelder aus!
'; } //INSERT THE DATA FROM THE FORM INTO THE MYSQL DATABASE! if($thumb_new_name != "" & $title != "" & $url != "" & $agbs == "on" & $action == "upload_form_sent" & $antispam == $captcha_spam){ $query = "INSERT INTO `_formulars_upload` (`id`, `uid`, `publish_date`, `publisher`, `status`, `title`, `url`, `image`, `ip`) VALUES (NULL, '', now(), '', 'Offline', '". $title ."', '". $url ."', '".$thumb_new_name."', '".$_SERVER['REMOTE_ADDR']."');"; #echo $q; $result = mysql_query($query) or die (mysql_error()); #$result = mysqli_query($connection, $q) or die (mysqli_error($connection)); //unset($_SESSION); session_unset(); $title = ""; $url = ""; $thumb_new_name = ""; // Alert Success $alert = '
Vielen Dank! Ihr Eintrag wird in kürze freigegeben!
'; } ?>

Hintergrundgrafik hochladen

Angaben zum Bild

Bild auswählen
Maximale Dateigröße: 1Mb - Zulässige Formate: gif, jpg, jpeg or png
Bitte geben Sie den Sicherheitscode aus dem Bild unten in dieses Feld ein
Mit einem Stern (*) markierten Felder sind Pflichtfelder

'; //print_r($_SESSION); //echo '

'; //print_r($_POST); include('includes/footer.php'); ?>