catalepticstate Posted April 29, 2008 Posted April 29, 2008 Hi I'm using non oscommerce scripting in osCommerce and for some reason it does not work. Do I have to declare the pages or something? its just a simple script being called: <form enctype="multipart/form-data" action="<?php echo $_SERVER["PHP_SELF"]; ?>" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="204800000"> File: <input name="userfile" type="file" /><br /> <input type="submit" value="Upload" /> </form> <?php if (@is_uploaded_file($_FILES["userfile"]["tmp_name"])) { copy($_FILES["userfile"]["tmp_name"], "$/upload/" . $_FILES["userfile"]["name"]); echo "<p>File uploaded successfully.</p>"; } ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.