Answered
Seeking Assistance From David Powers Again, Please
David,
I am using your drop down menu of files script from page 197 of PHP Solutions. I have successfully adapted it to read in a list of PDF's from one of my subdirectories. The list of files is not in a data base, but read in directly from a sub-directory.
However, for the life of me, I can't figure out how to actually make one of the PDF's load. I have tried every syntax/combination in the Action property I can think of with no luck.
What I would like to do is either: 1) select the PDF from the drop down and then have it load into the browser or 2) selec the PDF fromt the drop down and then press a "download" button and have the file load into the browser.
Can you please help me figure this out?
Thanks in advance. Below is my code so far.
Glenn
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Image drop-down</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="PDFs/<?php echo $_POST['pix']; ?>.php">
<p>
<select name="pix" id="pix">
<option value="">Select an image</option>
<?php
include('Includes/buildFileList5.php');
buildFileList5('PDFs');
?>
</select><label></label>
</p>
<p>
<label>Download
<input type="submit" name="Download" id="Download" value="Submit" />
</label>
</p>
</form>
</body>
</html>
I am using your drop down menu of files script from page 197 of PHP Solutions. I have successfully adapted it to read in a list of PDF's from one of my subdirectories. The list of files is not in a data base, but read in directly from a sub-directory.
However, for the life of me, I can't figure out how to actually make one of the PDF's load. I have tried every syntax/combination in the Action property I can think of with no luck.
What I would like to do is either: 1) select the PDF from the drop down and then have it load into the browser or 2) selec the PDF fromt the drop down and then press a "download" button and have the file load into the browser.
Can you please help me figure this out?
Thanks in advance. Below is my code so far.
Glenn
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Image drop-down</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="PDFs/<?php echo $_POST['pix']; ?>.php">
<p>
<select name="pix" id="pix">
<option value="">Select an image</option>
<?php
include('Includes/buildFileList5.php');
buildFileList5('PDFs');
?>
</select><label></label>
</p>
<p>
<label>Download
<input type="submit" name="Download" id="Download" value="Submit" />
</label>
</p>
</form>
</body>
</html>
