July 11, 200818 yr hello i am trying to upload a file to another folder just an experiment but carnt seem to get it work can you help me with my coding html code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form action="savefile.php" method="post" enctype="multipart/form-data"> <input name="uploadedfile" type="file" /> <br /> <input name="" type="submit" value="submit" /> </form> </body> </html> php code <?php if ($HTTP_POST_FILES['uploadedfile']['size']<=20) { print "not recived"; } else { copy($HTTP_POST_FILE['uploadedfile']['c:/wamp/tmp'], $HTTP_POST_FILE['uploadedfile']['name']); print "thank you file uploaded"; } ?> thanks again
Create an account or sign in to comment