Jump to content
php.lv forumi

forma ar failu


student

Recommended Posts

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";

}

?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...