Guest Posted January 24, 2007 Share Posted January 24, 2007 On my home page I am using the following code: <td width="195" height="60" valign="top"> <?php // bof infobox on index only if (isset($HTTP_GET_VARS['products_id'])) { } else { if (isset($cPath) && tep_not_null($cPath)) { } else { include(DIR_WS_BOXES . 'manufacturers.php'); } } //eof infobox on index only ?> </td> This PHP code makes my drop down list of manufacturers show up in the appropriate cell. However, when you view the page online, the drop down menu is sitting inside of an additional table. <td width="195" height="60" valign="top"> <!-- manufacturers //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="ManufacturersBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="ManufacturersBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="ManufacturersBoxContents"><form name="manufacturers" action="http://aerowave.com/store//catalog/index.php" method="get"><select name="manufacturers_id" onChange="this.form.submit();" size="1" style="width: 100%"><option value="" SELECTED>Please Select</option><option value="13">40 Thieves</option><option value="10">Block</option><option value="11">Brendan Lynch</option><option value="12">Deron Johnson</option><option value="14">Fragile System</option><option value="15">Maw & Paw</option><option value="16">Pedestrian</option><option value="17">Sugar High</option><option value="18">Tim Urban</option></select><input type="hidden" name="osCsid" value="9099e329cb2289d69595cd797e820dd6"></form></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- manufacturers_eof //--> </td> I want to get rid of all the additional code it creates, and have it only generate this: <tr> <td class="ManufacturersBoxContents"><form name="manufacturers" action="http://aerowave.com/store//catalog/index.php" method="get"><select name="manufacturers_id" onChange="this.form.submit();" size="1" style="width: 100%"><option value="" SELECTED>Please Select</option><option value="13">40 Thieves</option><option value="10">Block</option><option value="11">Brendan Lynch</option><option value="12">Deron Johnson</option><option value="14">Fragile System</option><option value="15">Maw & Paw</option><option value="16">Pedestrian</option><option value="17">Sugar High</option><option value="18">Tim Urban</option></select><input type="hidden" name="osCsid" value="9099e329cb2289d69595cd797e820dd6"></form></td> </tr> I know that in order to do this I have to alter the boxes.php file inside of the class folder. I have played with the code, but I have been unable to get it working properly. Any suggestions? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.