This is my first try at PHP coding, here is a copy of the code I'm trying to use.
<?php
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<title>Construction Details</title>
</head>
<body onload="FP_preloadImgs(/url/'button19.jpg', /url/'button18.jpg', /url/'button32.jpg', /url/'button33.jpg')">
<h2><i><font size="7" color="#0000FF">Construction Details</font></i></h2>
<p>Welcome to the Construction detail area. Below is a input field and button to
search and view construction details for the installation and construction of our
towers.</p>
<p>
</a></p>
<p>Use the form below to search for detail drawing documents in the
Details Directory containing specific details for construction. The
search engine will display a PDF file by the detail number; if there is
no matching document, then a message saying "No Match Found" will be
shown, otherwise too see all of the listing of details you can push the
"Browse" button or go to the Construction page by pushing the "Up"
button. </p>
<p>All detail files names start with STD-DET-</p>
<form method="POST" action="--WEBBOT-SELF--" onSubmit="location.href='derived/nortbots.htm';return false;" webbot-onSubmit language="JavaScript" name="FrontPage_Form1">
<!--webbot bot="SaveResults" U-File="private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan -->
<p>
<!--webbot bot="Validation" s-data-type="Number" s-number-separators=",." --><input type="text" name="PDF_ID" size="20"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
$search_dir = "m:/Engineering/Details/"; $dh = opendir($search_dir); while (($file = readdir($dh)) !== false)
{
if (strtoupper($file) == 'STD-DET-' . $GET['PDF_ID'] . '.PDF') {
header('Location: http://' . $SERVER['HTTP_HOST'] . '/' . $search_dir . '/' . $file);
exit;
}
}
</form>
<h2> </h2>
<h2> <a href="../Details"><img border="0" id="img13" src="button31.jpg" height="20" width="100" alt="Browse" fp-style="fp-btn: Soft Capsule 6" fp-title="Browse" onmouseover="FP_swapImg(1,0,/id/'img13',/url/'button32.jpg')" onmouseout="FP_swapImg(0,0,/id/'img13',/url/'button31.jpg')" onmousedown="FP_swapImg(1,0,/id/'img13',/url/'button33.jpg')" onmouseup="FP_swapImg(0,0,/id/'img13',/url/'button32.jpg')"></a>
To go the detail directory</h2>
<h2> <a href="products.htm"><img border="0" id="img11" src="button17.jpg" height="20" width="100" alt="Up" onmouseover="FP_swapImg(1,0,/id/'img11',/url/'button18.jpg')" onmouseout="FP_swapImg(0,0,/id/'img11',/url/'button17.jpg')" onmousedown="FP_swapImg(1,0,/id/'img11',/url/'button19.jpg')" onmouseup="FP_swapImg(0,0,/id/'img11',/url/'button18.jpg')" fp-style="fp-btn: Soft Capsule 6; fp-orig: 0" fp-title="Up"></a>
To go up to the structural details of connection page</h2>
<h2> </h2>
<h2> </h2>
<blockquote>
<dl>
<dd>
<br>
</dd>
</dl>
</blockquote>
<h5> </h5>
<p> </p>
<hr>
<h5>Revised: <!--webbot bot="TimeStamp" s-format="%m/%d/%y" s-type="EDITED" -->.</h5>
</body>
</html>
?>