Using the following script, I got "The requested method POST is not allowed for the URL /php/upload.html" response from Apache. Any suggestion to solve the problem ?
Regards,
Arief K
<HTML>
<HEAD>
<TITLE> Example Upload Form upload.phtml </TITLE>
</HEAD>
<BODY>
<?php
if ( $userfile )
{
@$res=copy($userfile,"$userfile_name"
if ( !$res )
print "Upload failed! \n";
else
print "Upload of $userfile_name successful \n";
}
?>
<FORM method=POST ENCTYPE="multipart/form-data">
File to Upload
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="5000000">
<INPUT NAME="userfile" TYPE="file" size=35>
<INPUT TYPE="submit">
</FORM>
</BODY>
</HTML>
Regards,
Arief K
<HTML>
<HEAD>
<TITLE> Example Upload Form upload.phtml </TITLE>
</HEAD>
<BODY>
<?php
if ( $userfile )
{
@$res=copy($userfile,"$userfile_name"
if ( !$res )
print "Upload failed! \n";
else
print "Upload of $userfile_name successful \n";
}
?>
<FORM method=POST ENCTYPE="multipart/form-data">
File to Upload
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="5000000">
<INPUT NAME="userfile" TYPE="file" size=35>
<INPUT TYPE="submit">
</FORM>
</BODY>
</HTML>