ray Posted March 18, 2008 Report Share 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 Link to comment Share on other sites More sharing options...
777 Posted March 18, 2008 Report Share Posted March 18, 2008 (edited) action="" ... nav faila, caur kuru ispildas shis POST PHP_SELF jaieraksta Edited March 18, 2008 by 777 Link to comment Share on other sites More sharing options...
andrisp Posted March 18, 2008 Report Share 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 Link to comment Share on other sites More sharing options...
ray Posted March 18, 2008 Author Report Share Posted March 18, 2008 Failie iet iekš $_FILES masīva. laikam es dzēris šodien, stulba neuzmanība Link to comment Share on other sites More sharing options...
Recommended Posts