Zmieniłem kod ale dalej nie zapisuje mi do bazy....
<?php
if ($_POST['wyslij'] == 1) {
$imie = $_POST['kth_name'];
$email = $_POST['email_adress'];
$phone = $_POST['phone_number'];
$company = $_POST['company_nr'];
$partner = $_POST['partner_nr'];
$nowy = $_POST['nowy_klient'];
mysql_query("INSERT INTO active_customers (Id, Imie_nazwisko, email, telefon, numer_kth, partner_nr, customer_exist, data) VALUES('', '$imie', '$email', '$phone', '$company', '$partner', '$nowy', NOW());");
?>
<div class="full_top_info">
<div class="full_top_info_1">
Dziękujemy za zapisanie się do naszego Newslettera! Od teraz będziesz na bierząco ze wszystkimi informacjami!
<script>setTimeout(function(){window.location.href='http://mojastrona.pl'},2500);</script>
</div>
</div>
<?
}
?>
<form method="post" action=""> <div class="section">Uzupełnij formularz
</div> <label>Imię i nazwisko
<input type="text" required name="kth_name" /></label> <label>Adres e-Mail
<input type="email" required name="email_adress" /></label> <label>Numer telefonu
<input type="tel" required name="phone_number" maxlength="9" /></label> <label>Numer klienta (Pole nie jest wymagane)
<input type="text" name="company_nr" value="Numery zacznają się od 311 np. 311230872" maxlength="9" /></label> <label>Numer partnera (Pole nie jest wymagane)
<input type="text" name="partner_nr" value="Numery używany przy logowaniu np. 4014734" maxlength="7" /></label> <label><input type="checkbox" name="nowy_klient" value="1" > Jestem nowym klientem
</label> <label><input type="checkbox" name="vehicle" value="zgoda" required > Wyrażam zgodę na otrzymywanie na podany w formularzu adres poczty elektronicznej informacji handlowych wysyłanych przez
</label> <div class="button-section"> <input type="hidden" name="wyslij" value="1" /><input type="submit" value="Zapisz się na newsletter" />
Ten post edytował pikasso 2.11.2016, 13:10:38