Associate
- Joined
- 1 Jan 2007
- Posts
- 355
Hi Guys,
I need help with a PHP script.
I have written a PHP script which automatically populates a dropdown list from a folder of uploaded files.
The problem I know have is I need help with a script because what I want to happen is that when an item is selected from the dropdown menu I want it to open.
Simple as that but I am completely new to the PHP world.
Any help would be appreciated.
This is my script so far: -
<?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/dropdown_menu.inc.php');
pricelist('c:/htdocs/panasonic_system_pricing');
?>
</select>
</p>
</form>
<?php include('includes/footer.inc.php'); ?>
</body>
</html>
I need help with a PHP script.
I have written a PHP script which automatically populates a dropdown list from a folder of uploaded files.
The problem I know have is I need help with a script because what I want to happen is that when an item is selected from the dropdown menu I want it to open.
Simple as that but I am completely new to the PHP world.
Any help would be appreciated.
This is my script so far: -
<?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/dropdown_menu.inc.php');
pricelist('c:/htdocs/panasonic_system_pricing');
?>
</select>
</p>
</form>
<?php include('includes/footer.inc.php'); ?>
</body>
</html>