Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error


deathgod

Recommended Posts

Posted

Hey All

I am getting a parse error that doesn't 'exist' in the code, at least in my eyes, please help!

I have included the entire page code at the bottom for those that want to run it on their localhost.

 

Error:

PHP Parse error: parse error, unexpected T_STRING, expecting ')' in c:\Inetpub\wwwroot\search.php on line 25

 

Line 25:

'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . ' ' . tep_hide_session_id() tep_image_submit('quick_find_submit.gif', BOX_SEARCH_BUTTON) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

 

Page:

<?php

/*

$Id: search.php,v 1.22 2003/02/10 22:31:05 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- search //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_SEARCH);

 

new SearchBoxHeading($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('quick_find_submit.gif', BOX_SEARCH_BUTTON) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');

 

new SearchBox($info_box_contents);

?>

</td>

</tr>

<!-- search_eof //-->

Menou and unome

Posted

its 2am here, which is 2 hours too late for me, if you ask any questions from me, they will be most probably be answered tommorrow night

 

Sleep well

Menou and unome

Posted

really? i thought that closes the array

$info_box_contents[] = array('form' =>.....

and that ) is also there in the default osc file, i'll try without that finally one and see if it works

Menou and unome

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...