<? if($_SESSION['access'] != 'root'){ } ?> <a href="list.php">pokaz liste</a> <div style="position:relative"> <form enctype="text/plain" action="add_file.php" method="post"> <fieldset> <legend>Formularz - dodaj</strong></legend> <p><strong>Imiê</strong>: <input type="text" name="imie" value="Jan" size="30" maxlength="40" style="position: absolute; left: 150px; background-color: cornsilk; font-style: italic; color: gray "></p> <p><strong>Nazwisko</strong>: <input type="text" name="nazwisko" value="Kowalski" size="30" maxlength="40" style="position: absolute; left:150px; background-color: cornsilk; font-style: italic; color: gray "></p> <p><strong>Pesel</strong>: <input type="text" name="pesel" value="88071506678" size="30" maxlength="40" style="position: absolute; left:150px; background-color: cornsilk; font-style: italic; color: gray "></p> <p><strong>Lekarz</strong>: <input type="text" name="lekarz" value="Klos" size="30" maxlength="40" style="position: absolute; left:150px; background-color: cornsilk; font-style: italic; color: gray "></p> <p><strong>Ilo¶æ na¶wietleñ</strong>: <input type="text" name="ilosc" value="3" size="30" maxlength="40" style="position: absolute; left:150px; background-color: cornsilk; font-style: italic; color: gray "></p> <p><strong>Lekarz</strong>: <input type="text" name="dawka" value="2,6" size="30" maxlength="40" style="position: absolute; left:150px; background-color: cornsilk; font-style: italic; color: gray "></p> <p><strong>Lekarz</strong>: <input type="text" name="uwagi" value="chory zmarl" size="30" maxlength="40" style="position: absolute; left:150px; background-color: cornsilk; font-style: italic; color: gray "></p> </fieldset> <p><input type="submit" name="wyslij" value="Dodaj"></p> </form>
do tego plik przekazujacy dane do mysqla
<? if($_SESSION['access'] != 'root'){ } require_once('./config.php'); $sql=mysql_query("INSERT INTO `badania` (`data`, `imie`, `nazwisko`, `pesel`, `lekarz`, `ilosc`, `dawka`, `uwagi`) VALUES ('curdate();','".$_POST['imie']."', '".$_POST['nazwisko']."', '".$_POST['pesel']."', '".$_POST['lekarz']."', '".$_POST['ilosc']."', '".$_POST['dawka']."', '".($_POST['uwagi'])."')") ?>
Mianowicie wpisy do mysqla dodaja sie ale nie ma w nich zadnej wartosci.. doszedlem do tego ze poprostu $_POST nie pobiera mi zmiennych z formularza bo nawet gdy dam mu echo($_POST['imie']); to nic nie zwraca..
W czym jest problem..?
wlaczylem global registry w php.ini i wylaczylem safe mode
