Sorry folks but I'm really stuck again.
I've tried two methods:
1.
<FORM ENCTYPE="multipart/form-data" ACTION="picture1.php3" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="50000">
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>
then picture1.php3 executes:
echo $userfile_name;
copy($userfile,'/wyic/'.$userfile_name);
It echoes the name alright but then errors:
Unable to create '/wyic/snake.gif': No such file or directory in /home/ambitire/public_html/wyic/picture1.php3 on line 12
Now, I understand that the variable actually cannot be passed to another form, so I tried:
2nd method:
<?php
if ($userfile)
{
echo $userfile_name;
copy($userfile,'/wyic/'.$userfile_name);
}
else
{
?>
<body bgcolor="#FFFFFF">
<FORM ENCTYPE="multipart/form-data" ACTION="" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="50000">
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>
</body>
<?php
}
?>
But when I click send file I get:
The requested method POST is not allowed for the url.
But now I don't know what to do!
Help!!!
Regards
Elizabeth