View Single Post
  #2  
Old 02-17-2009, 04:55 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Menu linking to PDF's in template

Code:
<form method="post" name="stiffyinstr">
There is no action specified. It should be
Code:
<form method="post" name="stiffyinstr" action="customScript.php">
Where customScript is the name of the script that will handle user selection

If you just want to open new window with pdf, don't mess with forms try this instead of form submitting:
Code:
<br /> PDF Stiffy Instructions <select name="stiffy" style="width: 50%;" onchange="window.open(this.value,'PDF Stiffy Instructions','width=300,height=500,toolbar=1')"> <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> <br/>
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote