Hej,
Mam problem z pobraniem daty wybranej przez użytkowanika przez input "date" i dodania tej wartości do bazy danych.
Kod:
<http://december.com/html/4/element/label.html for="date">Data wysyłki:</http://december.com/html/4/element/label.html> <http://december.com/html/4/element/input.html id="date" type="date"> <http://december.com/html/4/element/input.html type="submit" value="Wyślij" id="wyslij2">
$data = mysqli_real_escape_string($link, $_POST['date']); $sql2 = "INSERT INTO zlecenia VALUES (NULL, $kod_kreskowy, $numer_zlecenia, now(), 0, 0, 0, 0, 0, 0, '$material',$m2 , '$zaklada', 0, 0, 0, '".$data."')"; }
Wiesz co trzeba zrobić, aby odebrać wartość z pola formularza?
http://forum.php.pl/index.php?s=&showtopic=261166&view=findpost&p=1235276
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)