Hi,
Thanks for your reply & I must admit I am a complete beginner so talks of headers, etc in the PHP manual is a bit above my standard at the minute.
This is the form page I have created & what I want to happen is then when a file is selected in the dropdown box & the submit button is acivated I want the file to be opened in it's original format.
I can also post the script for the include file which builds the dropdown list if it helps.
Can you please advise on a script which will allow me to do this?
<?php include('includes/title.inc.php'); ?>
<?php include('includes/panasonic_system_pricelist_upload.inc.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Trust Distribution Intranet<?php echo "—($title)"; ?></title>
<link rel="stylesheet" type="text/css" href="trust intranet.css" />
</head>
<body>
<?php include('includes/header.inc.php'); ?>
<?php include('includes/menu.inc.php'); ?>
<?php
//if the form has been submitted, display result
if (isset($result))
{
echo "<p>$result</p>";
}
?>
<form action="" method="post" enctype="multipart/form-data" name="upload_pricelist" id="upload_pricelist">
<p>
<label for="panasonic_system_pricelist">Upload pricelist:</label>
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo MAX_FILE_SIZE; ?>" />
<input type="file" name="panasonic_system_pricelist" id="panasonic_system_pricelist" />
</p>
<p>
<input type="submit" name="upload" id="upload" value="upload" />
</p>
</form>
<form`action="" method="post" name="download_pricelist" id="download_pricelist">
<p>
<label for="panasonic_system_pricelist">download pricelist:</label>
<select name="pricelist" id="pricelist">
<option value="">Select a pricelist</option>
<?php
include('includes/panasonic_system_pricelist_dropdown.inc.php');
pricelist('c:/htdocs/panasonic_system_pricing');
?>
</select>
</p>
<p>
<input type="submit" name="download" id="download" value="download" />
</p>
</form>
<?php include('includes/footer.inc.php'); ?>
</body>
</html>[/B]