I am trying to write a .tpl that is a dropdown menu that links to all my instruction PDF's. This is in a static page and the dropdown is filled from a query I added to pages.php. You select your product from the dropdown and the PDF should opens. I don't have any preference on how the form gets submitted, if its "onchange" or a submit button or something else. (I've tried both) I'd prefer the pdf to open in a new window, but don't feel real strong about that either. Any help is greatly appreciated. Thanks.
Code:
<br />
PDF Stiffy Instructions
<form method="post" name="stiffyinstr">
<select name="stiffy" style="width: 50%;" onchange="document.stiffyinstr.submit ();">
<option value="">Select Stiffy PN</option>
{section name=st loop=$stiffys}
<option value="{$current_location}/instructions/{$stiffys[st].IE_part_number}.pdf">-{$stiffys[st].IE_part_number}- {$stiffys[st].year}-{$stiffys[st].year_to} {$stiffys[st].makename} {$stiffys[st].modelname}{if $stiffys[st].submodel_name} {$stiffys[st].submodel_name}{/if}{if $stiffys[st].engine_size}, {$stiffys[st].engine_size}L{/if}</option>
{/section}
</select>
<!--<input type="submit" value="View PDF"/><a href onclick="{$current_location}/instructions/{$stiffy}.pdf"></a>-->
</form>
<br/>