student Posted October 29, 2010 Report Share Posted October 29, 2010 Jautājums šāds: Kur ir kļūda,ka man izmet visu laiku nav bilžu? <html> <head><title>Bildes</title></head> <body> <form action="bilde.php" method="post" enctype="multipart/form-data"> <input type="file" name="bilde1"><br> <input type="file" name="bilde2"><br> <input type="submit" value="ievietot"> </form> </body> </html> <?php if(isset($_POST['bilde1'],$_POST['bilde2'])&& $_POST['bilde1']!="" && $_POST['bilde2']!=""){ $bilde1=$_POST['bilde1']; $bilde2=$_POST['bilde2']; echo $bilde1,"<br>"; echo $bilde2; } else{ $_POST['bilde1']=""; $_POST['bilde2']=""; echo "Nav bilžu"; } ?> Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted October 29, 2010 Report Share Posted October 29, 2010 Faili neatrodas $_POST masīvā, bet gan $_FILES masīvā. http://lv.php.net/manual/en/features.file-upload.post-method.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.