perezf Posted May 25, 2006 Share Posted May 25, 2006 I have a feeling i am doing this wrong can someone helpalso when i tried this to see if it would work it saidNotice: Use of undefined constant img1 - assumed 'img1' in /hsphere/local/home/way2fr3s/2fr3sh.com/photos/uploadimage.php on line 3can someone help me out<?phpif ($_FILES[img1] !="") {@copy($_FILES[img1] [name] ,"photos/people/".$_FILES[img1] [name]) or die("Couldn't copy the file.");} else { die("No input file specified");}?><p>You Sent: <?php echo $_FILES[img1] [name]; ?></p> Link to comment https://forums.phpfreaks.com/topic/10411-help-with-an-uploading-script/ Share on other sites More sharing options...
.josh Posted May 25, 2006 Share Posted May 25, 2006 assuming that [b]img1[/b] is the right name='img1' in your form, try putting quotes around it$_FILES['img1'] Link to comment https://forums.phpfreaks.com/topic/10411-help-with-an-uploading-script/#findComment-38788 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.