1<?php
2function rasmname(){
3 $dirname = "./";
4 $images = glob($dirname."*.jpg");
5foreach($images as $image) {
6 echo '<img src="'.$image.'" /><br />';
7 }
8}
9rasmname();
1<html>
2 <head>
3 <title>display image</title>
4 </head>
5 <body>
6 <p>Here in your form and text</p>
7 <?php
8
9 echo "<img src='image-name.png' >";
10
11 ?>
12 </body>
13 </html>