<html>
<form action="image_test.php" enctype="multipart/form-data" method="post">
<table style="border-collapse: collapse; font: 12px Tahoma;" border="1" cellspacing="5" cellpadding="5">
<tbody>
<tr>
<td><img src="digital.jpg" name="image1"></td>
</tr>
<tr>
<td><input name="Upload Now" type="submit" value="Upload Image"></td>
</tr>
</tbody>
</table>
</form>
<html>
<?php
header('Content-type: image/jpg');
print "<pre>".print_r($_FILES,1)."</pre>";
$file=$_FILES['image1']['tmp_name'];
?>
How do I retrieve the image in php to then upload it later. This is important as I am getting the image from my webcam