deathgod Posted September 5, 2006 Posted September 5, 2006 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
deathgod Posted September 6, 2006 Author Posted September 6, 2006 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
jasonabc Posted September 6, 2006 Posted September 6, 2006 You have one ) too many. Looks like the one right at the end is the one that needs to be removed. Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
deathgod Posted September 6, 2006 Author Posted September 6, 2006 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
jasonabc Posted September 6, 2006 Posted September 6, 2006 ahh yes you're right - sorry I was looking just at line 25. I think the error is here: tep_hide_session_id() tep_image_submit should be: tep_hide_session_id() . tep_image_submit (note the period that concatenates the two functions together) Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
deathgod Posted September 6, 2006 Author Posted September 6, 2006 gives the same parse error after i removed it....[confused] Menou and unome
Recommended Posts
Archived
This topic is now archived and is closed to further replies.