This is the script I have written: -
<?php
if (array_key_exists('upload', $_POST))
{
//define constant for upload folder
define('UPLOAD_DIR', 'C:/htdocs/panasonic_pricing/');
//replace any spaces in original filename with underscores
//at the same time, assign to a simpler variable
$file = str_replace(' ', '_', $_FILES['panasonic_pricelist']['name']);
//move the file to the upload folder and rename it
move_uploaded_file($_FILES['panasonic_pricelist']['tmp_name'], UPLOAD_DIR.$file);
}
?>[/B]
Now, where would I enter the filename I want to use because if I change 'name' or 'tmp_name' the script won't work & returns an error?