Ok I'm sure this is absurdly easy but I'm it's giving me
!
This is the code I am trying to put into the side box -
Code:
<?php
echo "<form action=''>";
?>
<ul class="navMain">
<?php
echo "<li>";
$model1[]=array('id'=>'','text'=>TEXT_PLEASE_SELECT);
if(isset($_REQUEST['cPath1'])){
$value=$_REQUEST['cPath1'];
}
echo '<span id="pf_title">'.strip_tags(TEXT_FIND_ALL_PRODUCTS).'</span>
<span class="pf_selectbox_name">'.TEXT_MAKE . '</span>' . zen_draw_pull_down_menu('cPath1',array_merge($model1,zen_get_category_tree()),$value, 'id="cPath" class="pf_selectbox_text"');
echo "</li>\n";
echo '<li>';
echo '<noscript>';
echo zen_my_image_submit(PF_NOSCRIPT_SUBMIT, 'Go');
if($_REQUEST['cPath1']!=""){
$value=$_REQUEST['cPath1'];
$dropdownArray=zen_get_category_tree($value);
}
echo "</noscript>";
echo "</li>\n";
echo "<li>";
$modulePath="".DIR_WS_CATALOG;
echo zen_draw_hidden_field('basemodulepath',$modulePath,'id="basemodulepath" ');
$model=array();
$model[]=array('id'=>'',
'text'=>TEXT_PLEASE_SELECT
);
if($_REQUEST['cPath1']!=""){
$model=array_merge($model,$dropdownArray);
}
if(isset($_REQUEST['select_model'])){
$value=$_REQUEST['select_model'];
}
echo '<span class="pf_selectbox_name">' . TEXT_MODEL .'</span>'
. zen_draw_pull_down_menu('select_model', $model, $value, 'id="select_model" class="pf_selectbox_text"');
echo "</li>\n";
echo "<li>";
echo "<noscript>";
if($_REQUEST['select_model']!=""){
$value=$_REQUEST['select_model'];
$dropdownArray=zen_get_category_tree($value);
}
echo zen_my_image_submit(PF_NOSCRIPT_SUBMIT, 'Go');
echo "</noscript>";
echo "</li>\n";
echo "<li>";
$year=array();
$year[]=array('id'=>'',
'text'=>TEXT_PLEASE_SELECT
);
if($_REQUEST['select_model']!=""){
$year=array_merge($year,$dropdownArray);
}
if(isset($_REQUEST['cPath'])){
$value=$_REQUEST['cPath'];
}
if($_REQUEST['select_model']!=""){
echo '<span class="pf_selectbox_name">' . TEXT_YEAR . '</span>' .
zen_draw_pull_down_menu('cPath',$year , $value, 'id="select_year" class="pf_selectbox_text"');
}
else {
echo '<span class="pf_selectbox_name">' . TEXT_YEAR .'</span>' .
zen_draw_pull_down_menu('cPath22',$year , $value, 'id="select_year" class="pf_selectbox_text"');
}
echo "</li>\n";
echo "<li>";
echo "<noscript>";
if($_REQUEST['cPath']!=""){
$value=$_REQUEST['cPath'];
}
echo zen_my_image_submit(PF_NOSCRIPT_SUBMIT, 'Go');
echo "</noscript>";
echo "</li>\n";
?>
</ul>
</form>

I changed the code to this and the page stops loading when it should load this -
Code:
<?php
/**
* blank sidebox - allows a blank sidebox to be added to your site
*
* @package templateSystem
* @copyright 2007 Kuroi Web Design
* @copyright Portions Copyright 2003-2007 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: blank_sidebox.php 2007-05-26 kuroi $
*/
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
// Replace the text and HTML tags between the apostophes on lines 19 and 20.
// Use as many or as few lines using this model as you need for your custom content.
// If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
// If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
// $content .= '<p>' . TEXT_BLANK_SIDEBOX . '</p>';
$content .= 'echo "<form action=''>"';
$content .= '<ul class="navMain">';
$content .= '<li>';
$content .= '($model1[]=array('id'=>'','text'=>TEXT_PLEASE_SELECT); if(isset($_REQUEST['cPath1'])){$value=$_REQUEST['cPath1'];})';
$content .= '<span class="pf_selectbox_name">'.TEXT_MAKE . '</span>' . zen_draw_pull_down_menu('cPath1',array_merge($model1,zen_get_category_tree()),$value, 'id="cPath" class="pf_selectbox_text"')';
$content .= '</li>';
$content .= '<li>';
$content .= '$modulePath="".DIR_WS_CATALOG';
$content .= 'echo zen_draw_hidden_field('basemodulepath',$modulePath,'id="basemodulepath" ')';
$content .= '$model=array()';
$content .= '($model[]=array('id'=>'',
'text'=>TEXT_PLEASE_SELECT
);
if($_REQUEST['cPath1']!=""){
$model=array_merge($model,$dropdownArray);
}
if(isset($_REQUEST['select_model'])){
$value=$_REQUEST['select_model'];
})';
$content .= 'echo '<span class="pf_selectbox_name">' . TEXT_MODEL .'</span>'
. zen_draw_pull_down_menu('select_model', $model, $value, 'id="select_model" class="pf_selectbox_text"')';
$content .= '</li>';
$content .= '<li>';
$content .= '$year=array()';
$content .= '($year[]=array('id'=>'',
'text'=>TEXT_PLEASE_SELECT
);
if($_REQUEST['select_model']!=""){
$year=array_merge($year,$dropdownArray);
}
if(isset($_REQUEST['cPath'])){
$value=$_REQUEST['cPath'];
}
if($_REQUEST['select_model']!=""){
echo '<span class="pf_selectbox_name">' . TEXT_YEAR . '</span>' .
zen_draw_pull_down_menu('cPath',$year , $value, 'id="select_year" class="pf_selectbox_text"');
}
else {
echo '<span class="pf_selectbox_name">' . TEXT_YEAR .'</span>' .
zen_draw_pull_down_menu('cPath22',$year , $value, 'id="select_year" class="pf_selectbox_text"');
})';
$content .= '</li>';
$content .= '</li>';
$content .= '</ul>';
$content .= '</form>';
$content .= '</div>';
?>
for now I'm off to the wild web to see what else I can learn about php coding... prolly just enuf to get myself into trouble!