<?php
include "config.php";
global $source, $INFO;
if ( !$source ) {
die("You forgot to attach an image file");
}
$name = $FILES['source']['name'];
$tmp = $FILES['source']['tmp_name'];
$path = $INFO['site_path'].$name;
if (move_uploaded_file($tmp, $name)) {
echo "File Uploaded {$name}";
// right down here is where I want the $name picture to be displayed after is
// uploaded to the server. i think i got the wrong syntax, i have tried for hours.
echo '<img src=name>';
}
else {
echo "File Not Uploaded!";
die();
}
?>
Thanks for anybody's help!