dispalying uploaded images
<p>I am trying to creat a code which obtains uploaded images, stores them and also displays the image preview and confirms that the image was succesfully uploaded.
    

<pre><code>$name=$_FILES['myfile']['name'];

$tmp=$_FILES['myfile']['tmp_name'];

$error=$_FILES['myfile']['error'];

$path='myweb/';

if(move_uploaded_file($tmp,$path.$name)==1){echo 'success';}else{echo $error;};

echo ('&lt;img src="$path.$name" height="100px" width="100px"/&gt;');

&lt;?php
</code></pre>

<p>The problem is that images are not displaying</p>

<p>can you guys tell why?</p>

<p>i have also tried</p>

<pre><code>echo ('&lt;img src="$path$name" height="100px" width="100px"/&gt;');
</code></pre>

<p>but it still dosent work.</p>
