I am trying to add a custom code to show a simple searchbox on the front page, but I keep getting this error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /data/12/1/132/60/1132060/user/1201336/htdocs/.../.../.../modules/sts_inc/sts_user_code.php on line 53
I am new to PHP and some help would be appreciated :)
Code is below:
$sts->start_capture();
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_SEARCH);
new infoBoxHeading($info_box_contents, false, false);
$info_box_contents = array();
$info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_
ADVANCED_SEARCH_RESULT,
'', 'NONSSL', false), 'get'),
'align' => 'center',
'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30"
style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() . tep_image_submit
('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br>
<a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_
ADVANCED_SEARCH . '</b></a>');
new infoBox($info_box_contents);
?>
$sts->stop_capture('customsearch');