in img2.php
<form action="img3.php" method="post" enctype="multipart/form-data"
name="uploadImage" id="uploadImage">
<p>
<input type="hidden" name="MAX_FILE_SIZE"
value="<?php echo MAX_FILE_SIZE; ?>" />
<label for="image">Upload image:</label>
<input type="file" name="image" id="image" />
</p>
<input type="hidden" name="MAX_FILE_SIZE"
value="<?php echo MAX_FILE_SIZE; ?>" />
<label for="image">Upload image:</label>
<input type="file" name="photo" id="image" />
</p>
<p>
<input type="submit" name="upload" id="upload"
value="Upload" />
</p>
</form>
in img3.php
the code was lyk this:::
<?php
$photo = file_get_contents($_FILES['image']['tmp_name']);
header('Content-Type: image/jpeg');
echo $photo ;
$photo2 = file_get_contents($_FILES['photo']['tmp_name']);
header('Content-Type: image/jpeg');
echo $photo2 ;
?>
but it was dispalying 1st image only.
help me