ok what i want to do is i have a workign upload script
but i want to be able to send var to a database containgin the img to pull up
so far im just working on getting the vars to show up
heres the code
<?
if(isset( $Submit ))
{
//If the Submitbutton was pressed do:
copy ($FILES['imagefile']['tmp_name'], "files/".$FILES['imagefile']['name'])
or die ("Could not copy");
echo "";
echo "Name: " .$FILES['imagefile']['name']. "<br>"/n;
echo "Size: ".$FILES['imagefile']['size']."<br>"/n;
echo "Type: ".$_FILES['imagefile']['type']."<br>"/n;
echo "Copy Done...."/n;
}
else {
echo "";
echo "Could Not Copy, Wrong Filetype (".$_FILES['imagefile']['name'].")";
}
?>
i know ill have to make the name.file into a var as
$imgsrc=name.file
then ill have to make the link to pull the image
$link=<img src='$imgsrc'>
but i cant figure out how to get the name and var to work dynamicly
i tried $imgsrc=.$_FILES['imagefile']['name'].
but that gives me a parse error
anyone got any ideas