Guest Posted February 16, 2008 Posted February 16, 2008 Hi, I was updating the about us page and now have a parse error message. I have been through the html numerous times and can't figure out what to change. If someone could help me out I would be eternally grateful!!!!!! Here is the message I am getting: Parse error: parse error, unexpected ')', expecting ']' in /home/content/t/h/e/thereignof/html/contact_us.php on line 35 <?php /* $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_US); $error = false; if (isset($HTTP_GET_VARS['action'] && ($HTTP_GET_VARS['action'] == 'send' { $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); if (tep_validate_email($email_address)) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address); tep_redirect(tep_href_link(FILENAME_ABOUT_US, 'action=success')); } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="0" cellpadding="0" class="maincont_tb"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top" class="maincont_left_td"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0" class="leftbar_tb"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top" class="maincont_mid_td"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> </tr> <tr> <td> <IMG SRC="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>Washingtonianmagazinecover.gif" border="0" align="right" hspace="0" alt="Voted one of the D.C. area's 'Best for Pets'><a target="_new" href="http://wusa9.cityvoter.com/Details.aspx?p=7479" title="W*USA 9 2006 Washington DC contest Nominated: Best Pet supplies in Washington DC"></a>We are The Reign of Cats & Dogs, a pet boutique in Leesburg, Virginia, that was voted one of the D.C. area's 'Best for Pets' by Washingtonian Magazine and nominated by WUSA9 for 'Best Pet Supplies in Washington DC'! <p>Discover the charm of historic downtown Leesburg where eclectic shops and quaint eateries line the streets, awaiting your arrival and promising a magical shopping experience.</p> <p><IMG SRC="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_dogkim.jpg" border="0" align="left" hspace="6"> In the heart of downtown Leesburg, Virginia, The Reign of Cats & Dogs pet boutique delivers an extravaganza for pets and the people who love them. Enjoy the latest trends in pet fashion or find that perfect gift for the pet lover in your life. And don't forget to take home some gourmet treats for your favorite four-legged friend. <p> <IMG SRC="<?php echo DIR_WS_TEMPLATE_IMAGES; ?>az_store.jpg" border="0" align="right" hspace="6"> Pets are welcome... come in for a treat! <p><strong>Hours</strong><br> Sunday - 1-5<br> Monday - by chance<br> Tuesday - 11-5<br> Wednesday - 11-5<br> Thursday - 11-5<br> Friday - 11-5<br> Saturday - 11-5 <p> The Reign of Cats & Dogs 13 1/2 South King Street<br> Leesburg, VA 20175 </p> <p> Phone: (703) 669-6920 </p> <p><a href="contact_us.php">Contact us by e-mail</a></p> </td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top" class="maincont_right_td"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0" class="rightbar_tb"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
♥FWR Media Posted February 16, 2008 Posted February 16, 2008 Ooooh hardcoded text .. never nice to see :o if ( isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'send' ) { Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Guest Posted February 16, 2008 Posted February 16, 2008 Is what you typed the way it is supposed to look?
♥FWR Media Posted February 16, 2008 Posted February 16, 2008 Is what you typed the way it is supposed to look? [sarcasm]No I did it in order to hack your site![/sarcasm] Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Guest Posted February 16, 2008 Posted February 16, 2008 :blush: I'm sorry, it's all just going over my head! :blush: Do you mean because I posted all of the html? I don't even know what hardcoded means :blush: I'm was just trying to fix some text for SEO and accidentally hit a button, I believe it was ] and then got this error. I honestly don't know if what you typed is how I am supposed to fix it. I tried typing that, not knowing if I was supposed to or not.
♥FWR Media Posted February 16, 2008 Posted February 16, 2008 :blush: I'm sorry, it's all just going over my head! :blush: Do you mean because I posted all of the html? I don't even know what hardcoded means :blush: I'm was just trying to fix some text for SEO and accidentally hit a button, I believe it was ] and then got this error. I honestly don't know if what you typed is how I am supposed to fix it. I tried typing that, not knowing if I was supposed to or not. My apologies . . sarcastic moment aimed at entirely the wrong person :-" In your script as posted .. if (isset($HTTP_GET_VARS['action'] && ($HTTP_GET_VARS['action'] == 'send' { Should be .. if ( isset($HTTP_GET_VARS['action']) && $HTTP_GET_VARS['action'] == 'send' ) { Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Guest Posted February 16, 2008 Posted February 16, 2008 You're sweet, thank you. Normally I am all about sarcasm, it's my favorite thing, but I am so lost I didn't even get it! I will try it and pray that it works! Is there a way for someone to delete the rest of the html from my post so it is not all there for the world to see? I didn't see an edit option anywhere. I truly appreciate you taking time to help me with this.
Guest Posted February 16, 2008 Posted February 16, 2008 It worked!!!! THANK YOU SO VERY VERY VERY MUCH for your help!!!!!
♥FWR Media Posted February 16, 2008 Posted February 16, 2008 It worked!!!! THANK YOU SO VERY VERY VERY MUCH for your help!!!!! My pleasure. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.