ray Posted March 18, 2008 Report Posted March 18, 2008 (edited) Ir šāds kods: <?php if (isset($_POST['submit'])) { print_r($_POST); } else { ?> <form action="" method="POST" enctype="multipart/form-data"> <input type="file" name="test"><br /> <input type="submit" name="submit" value="Sūtīt"> </form> <?php } ?> Saņemtie dati izskatās šādi: Array ( [submit] => Sūtīt ) Kāpēc netiek saņemts test parametrs? Edited March 18, 2008 by ray
777 Posted March 18, 2008 Report Posted March 18, 2008 (edited) action="" ... nav faila, caur kuru ispildas shis POST PHP_SELF jaieraksta Edited March 18, 2008 by 777
andrisp Posted March 18, 2008 Report Posted March 18, 2008 (edited) Failie iet iekš $_FILES masīva. 777, ar action tam nav nekāda sakara. Ja tas ir tukšs, tad forma postējas uz to pašu skriptu. Edited March 18, 2008 by andrisp
ray Posted March 18, 2008 Author Report Posted March 18, 2008 Failie iet iekš $_FILES masīva. laikam es dzēris šodien, stulba neuzmanība
Recommended Posts