require_once('templates/db.php'); require_once('templates/email.php'); require_once('baner_licznik.php') ; ?>
Wyślij zapytanie do nas
'id: '.@$id_ = $_POST['id_'].'
'; //if(($_POST['submit'] == 'Wyślij zgłoszenie') && (true==$id_) ) if(true==@$id_) { @$firma = strip_tags( stripslashes( htmlspecialchars( trim( $_POST['firma'] ) ) ) ); @$nazwisko = strip_tags( stripslashes( htmlspecialchars( trim( $_POST['nazwisko'] ) ) ) ); @$miejscowosc =strip_tags( stripslashes( htmlspecialchars( trim( $_POST['miejscowosc'] ) ) ) ); @$kraj =strip_tags( stripslashes( htmlspecialchars( trim( $_POST['kraj'] ) ) ) ); @$telefon = strip_tags( stripslashes( htmlspecialchars( trim( $_POST['telefon'] ) ) ) ); @$email = strip_tags( stripslashes( htmlspecialchars( trim( $_POST['email'] ) ) ) ); @$tytul = strip_tags( stripslashes( htmlspecialchars( trim( $_POST['tytul'] ) ) ) ); @$tresc_wiadomosci = strip_tags( stripslashes( htmlspecialchars( trim( $_POST['tresc_wiadomosci'] ) ) ) ); if( preg_match('/^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ\s]{2,30}$/',$firma) ) // znaki od aA do zZ, polskie { $firma_= true; } else { $komunikat='Imię zawiera niepoprawne dane '.$firma.' lub pole jest puste'; //echo $komunikat. '
'; } if( preg_match('/^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ-\D\n\s]{2,50}$/',$nazwisko) ) { $nazwisko_ =true; } else { $komunikat='Nazwisko zawiera niepoprawne dane '.$nazwisko.' lub pole jest puste'; //echo $komunikat. '
'; } if( preg_match('/^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ.,\*\/0-9-\D\n\s]{2,50}$/',$miejscowosc) )//.^,$,?,+,*,\,(,),:,&,", { $miejscowosc_ =true; } else { $komunikat='Nazwa miejscowości zawiera niepoprawne dane '.$miejscowosc.' lub pole jest puste'; $komunikat. '
'; } if( preg_match('/^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ-\D\n\s]{2,50}$/',$kraj) )//.^,$,?,+,*,\,(,),:,&,", { $kraj_ =true; } else { $komunikat='Nazwa kraju zawiera niepoprawne dane '.$kraj.' lub pole jest puste'; $komunikat. '
'; } if( preg_match('/^[0-9-;()\s]{2,25}$/',$telefon) ) { $telefon_ =true; } else { $komunikat='
Telefon zawiera niepoprawne dane '.$telefon.' lub pole jest puste'; $komunikat. '
'; } if( preg_match('/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/',$email) ) { //echo "ok"; $email_ =true; } else { $komunikat='
Email zawiera niepoprawne dane '.$email.' lub pole jest puste'; $komunikat. '
'; } if( preg_match('/^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ.,*"0-9-\D\n\s]{2,255}$/',$tytul) )//.^,$,?,+,*,\,(,),:,&,", { $tytul_ =true; } else { $komunikat='Nazwa wspólnota zawiera niepoprawne dane '.$tytul.' lub pole jest puste'; $komunikat. '
'; } if( preg_match('/^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ.,\/0-9-.^, $,?,+,*,\,(,),:,•,",\D\n\s]{2,1500}$/',$tresc_wiadomosci)) // /^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ.0-9-\s]{2,20}$/ ///^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ0.-9-\s]{2,30}$/ { $tresc_wiadomosci_ =true; } else { $komunikat='
Dodatkowe informacje zawiera niepoprawne dane '.$tresc_wiadomosci.' lub pole jest puste'; $komunikat. '
'; } //session_start(); if (!($_SESSION['token'] == $_POST['token']) ) { "Wprowadzono poprawny kod"; dodanie_rekordu($firma,$nazwisko,$miejscowosc,$kraj,$telefon,$email,$tytul,$tresc_wiadomosci); } else { "Wprowadzono niepoprawny kod";} } 'id::::: '.$id = $_POST['id']; //echo 'id: '.$id_ = $_POST['id_']; if( ( 0==$id) || true==($firma_ && $nazwisko_ && $miejscowosc_ && $kraj_ && $telefon_ && $email_ && $tytul_ && $tresc_wiadomosci_ ) ) { //===================================================== $id=2; 'drugi warunek:'; $id_=true; ?>
'; ?>
'; //if(($_POST['submit'] == 'Wyślij zgłoszenie') && (true==$id_) ) if(true==@$id_) { @$firma = strip_tags( stripslashes( htmlspecialchars( trim( $_POST['firma'] ) ) ) ); @$nazwisko = strip_tags( stripslashes( htmlspecialchars( trim( $_POST['nazwisko'] ) ) ) ); @$miejscowosc =strip_tags( stripslashes( htmlspecialchars( trim( $_POST['miejscowosc'] ) ) ) ); @$kraj =strip_tags( stripslashes( htmlspecialchars( trim( $_POST['kraj'] ) ) ) ); @$telefon = strip_tags( stripslashes( htmlspecialchars( trim( $_POST['telefon'] ) ) ) ); @$email = strip_tags( stripslashes( htmlspecialchars( trim( $_POST['email'] ) ) ) ); @$tytul = strip_tags( stripslashes( htmlspecialchars( trim( $_POST['tytul'] ) ) ) ); @$tresc_wiadomosci = strip_tags( stripslashes( htmlspecialchars( trim( $_POST['tresc_wiadomosci'] ) ) ) ); if( preg_match('/^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ\s]{2,30}$/',$firma) ) // znaki od aA do zZ, polskie { $firma_= true; } else { $komunikat='Imię zawiera niepoprawne dane '.$firma.' lub pole jest puste'; //echo $komunikat. '
'; } if( preg_match('/^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ-\D\n\s]{2,50}$/',$nazwisko) ) { $nazwisko_ =true; } else { $komunikat='Nazwisko zawiera niepoprawne dane '.$nazwisko.' lub pole jest puste'; //echo $komunikat. '
'; } if( preg_match('/^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ.,\*\/0-9-\D\n\s]{2,50}$/',$miejscowosc) )//.^,$,?,+,*,\,(,),:,&,", { $miejscowosc_ =true; } else { $komunikat='Nazwa miejscowości zawiera niepoprawne dane '.$miejscowosc.' lub pole jest puste'; $komunikat. '
'; } if( preg_match('/^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ-\D\n\s]{2,50}$/',$kraj) )//.^,$,?,+,*,\,(,),:,&,", { $kraj_ =true; } else { $komunikat='Nazwa kraju zawiera niepoprawne dane '.$kraj.' lub pole jest puste'; $komunikat. '
'; } if( preg_match('/^[0-9-;()\s]{2,25}$/',$telefon) ) { $telefon_ =true; } else { $komunikat='
Telefon zawiera niepoprawne dane '.$telefon.' lub pole jest puste'; $komunikat. '
'; } if( preg_match('/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/',$email) ) { //echo "ok"; $email_ =true; } else { $komunikat='
Email zawiera niepoprawne dane '.$email.' lub pole jest puste'; $komunikat. '
'; } if( preg_match('/^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ.,*"0-9-\D\n\s]{2,255}$/',$tytul) )//.^,$,?,+,*,\,(,),:,&,", { $tytul_ =true; } else { $komunikat='Nazwa wspólnota zawiera niepoprawne dane '.$tytul.' lub pole jest puste'; $komunikat. '
'; } if( preg_match('/^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ.,\/0-9-.^, $,?,+,*,\,(,),:,•,",\D\n\s]{2,1500}$/',$tresc_wiadomosci)) // /^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ.0-9-\s]{2,20}$/ ///^[a-zA-ZąćęłńóśżźĄĆĘŁŃÓŚŻŹ0.-9-\s]{2,30}$/ { $tresc_wiadomosci_ =true; } else { $komunikat='
Dodatkowe informacje zawiera niepoprawne dane '.$tresc_wiadomosci.' lub pole jest puste'; $komunikat. '
'; } //session_start(); if (!($_SESSION['token'] == $_POST['token']) ) { "Wprowadzono poprawny kod"; dodanie_rekordu($firma,$nazwisko,$miejscowosc,$kraj,$telefon,$email,$tytul,$tresc_wiadomosci); } else { "Wprowadzono niepoprawny kod";} } 'id::::: '.$id = $_POST['id']; //echo 'id: '.$id_ = $_POST['id_']; if( ( 0==$id) || true==($firma_ && $nazwisko_ && $miejscowosc_ && $kraj_ && $telefon_ && $email_ && $tytul_ && $tresc_wiadomosci_ ) ) { //===================================================== $id=2; 'drugi warunek:'; $id_=true; ?>
* obowiązkowe pola do wypełnienia
W razie wątpliwości lub pytań prosimy o kontakt telefoniczny albo email
'; ?>
* obowiązkowe pola do wypełnienia
W razie wątpliwości lub pytań prosimy o kontakt telefoniczny albo email