OK, this is my first time trying to let folks upload a picture and save
it. I use a very basic html file input from
<form action="picact. php" method="post" enctype="multip art/form-data">
<input name="picture_n ame" type="file" id="picture_nam e">
<input type="submit" name="Submit" value="Submit">
</form>
In picact.php I try to run a simply copy function
if(!(copy($pict ure_name, "images/picupload.jpeg" ))){
echo "trouble"; }
else {
echo "worked";}
it tells me it worked, but there is no file in the images folder, so I
don't know what is going wrong. does anyone have any advice?
I am using a static file name for now, to avoid any trouble with
variable names.
thanks,
paul
it. I use a very basic html file input from
<form action="picact. php" method="post" enctype="multip art/form-data">
<input name="picture_n ame" type="file" id="picture_nam e">
<input type="submit" name="Submit" value="Submit">
</form>
In picact.php I try to run a simply copy function
if(!(copy($pict ure_name, "images/picupload.jpeg" ))){
echo "trouble"; }
else {
echo "worked";}
it tells me it worked, but there is no file in the images folder, so I
don't know what is going wrong. does anyone have any advice?
I am using a static file name for now, to avoid any trouble with
variable names.
thanks,
paul
Comment