Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

using non oscommerce scripting


catalepticstate

Recommended Posts

Posted

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>";

}

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...