matrix2223 Posted July 1, 2010 Share Posted July 1, 2010 Eric, I just installed version 2.1. I prefer that one as there is no sql to run. Anyway, as noted before in the thread, the phone number and subject reason are not being included in the e-mail. Since Sue has the older version working, is support for the non SQL version stopped? Tim Tim, No I will still work with folks with this, it will be a little slow for me at the moment, as I have way to much on my plate. I am sorry it has takin this so long to respond, for some reason the email for when someone adds a thread isnt getting to me. But anyhow, as far as your questions go my version does indeed work I use it myself and for others. The one that Sue had posted works however, still nothing gets sent and all the other issues that I had is still there. Eric Quote Link to comment Share on other sites More sharing options...
matrix2223 Posted July 1, 2010 Share Posted July 1, 2010 Hi Albert, First your image is a little distorted. 1. How to adjust height between the header and main body? A. Look in your header.php file near the end for a pixel_trans.gif and change the height to what ever you would like. 2. How to adjust width of this? A. You added your code for the recaptcha in the wrong location. Change this: <!-- // BOF Anti Robot Registration v3.0--> <?php if (ACCOUNT_VALIDATION == 'true' && strstr($PHP_SELF,'contact_us') && CONTACT_US_VALIDATION == 'true') include(DIR_WS_MODULES . FILENAME_DISPLAY_VALIDATION); ?> <!-- // EOF Anti Robot Registration v3.0--> </table></td> </tr> </table> <br /> With this: </table></td> </tr> </table> <br /> <!-- // BOF Anti Robot Registration v3.0--> <?php if (ACCOUNT_VALIDATION == 'true' && strstr($PHP_SELF,'contact_us') && CONTACT_US_VALIDATION == 'true') include(DIR_WS_MODULES . FILENAME_DISPLAY_VALIDATION); ?> <!-- // EOF Anti Robot Registration v3.0--> It should be at the bottom within its own table 3. I received without Customer's telephone and Email Subject is not one of the Enquiry Reasons. The email subject will be Enquiry from "My Store Name" all the time. How can I fix this? A. This is not version 2.1 you added the old code witch I also included. 4. No matter what email address I put in, as long as it's in [email protected], it would go through. Is there a way to check if the input email is valid before sending through from my website? Same as #3 These were the problems of the original code and still problems with the orginal code. What I uploaded does work, if you are getting any errors please post them. If it says error on line123 include line 123 Thanks, Eric Quote Link to comment Share on other sites More sharing options...
matrix2223 Posted July 1, 2010 Share Posted July 1, 2010 Imran, Thank you so kindly, I like your site, nice work. I noticed on your contact us page that you are missing the define: CONTACT_US_LIST in your lang. file and you have } else { that is not in a statement. so it is displaying as text at the bottom of the page. Eric Quote Link to comment Share on other sites More sharing options...
mecollectibles Posted July 6, 2010 Share Posted July 6, 2010 Hello, I regret it did not work for me. As I tested the result, it said your email sent while nothing worked at all! Quote Link to comment Share on other sites More sharing options...
simaster99 Posted August 20, 2010 Share Posted August 20, 2010 Hello, I regret it did not work for me. As I tested the result, it said your email sent while nothing worked at all! Same here, dropped in the supplied contact_us.php file over the vanilla contact_us file, it reports to work but no email is sent. Quote Link to comment Share on other sites More sharing options...
Patty Posted October 17, 2010 Share Posted October 17, 2010 (edited) More test results In this code version - if (tep_validate_email($email_address)) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $emailsubject, $enquiry, $name, $email_address); if (CONTACT_US_LIST !=''){ $send_to_array=explode("," ,CONTACT_US_LIST); preg_match('/\<[^>]+\>/', $send_to_array[$send_to], $send_email_array); $send_to_email= eregi_replace (">", "", $send_email_array[0]); $send_to_email= eregi_replace ("<", "", $send_to_email); the second line appears to be over-riding the list of emails input for the mod - i.e. regardless of which email reason (& therefore recipient address) is chosen, the second line forces all emails to be sent to STORE_OWNER_EMAIL_ADDRESS I've tried moving it around, but then emails are not received at all. This seems to indicate that lines 4 - 6 above are not correctly preparing the email addresses from the list input to the mod field in Admin. I've now put 30 hours into this and cannot get it to send to the configured range of email addresses, so I'm leaving it that all emails go to STORE_OWNER_EMAIL_ADDRESS until someone comes up with a fix. I'm having a similar problem. Email is always sent to the store owner's email, not the ones listed. Also when selecting the first subject no email is sent to the admin. Does anyone know how to fix this? Other than that, everything else is working fine. Edited October 17, 2010 by Patty Quote Patty Link to comment Share on other sites More sharing options...
pcvision Posted November 13, 2010 Share Posted November 13, 2010 Hi I have fiddled around with this for days now. I have the contribution working but........ sending emails ok but customer's page show email address not valid (yet still sends it). Cannot get emails sending to different addresses nor Cannot get the radio buttons!! Please help this is a brilliant contribution and I sooooo want to get it working! Quote Link to comment Share on other sites More sharing options...
pcvision Posted November 13, 2010 Share Posted November 13, 2010 Help I have installed it all now. using 1.41 - but it is sending emails to each of the addresses and not just the one on the radio box. any ideas I think it is to do with this bit of my coding. // BOF Super Contact us enhancement 1.41 $order_id = tep_db_prepare_input($HTTP_POST_VARS['order_id']); if ($order_id <> NULL){ $enquiry = 'Order ID: ' . $order_id . "\n\n" . tep_db_prepare_input($HTTP_POST_VARS['enquiry']); }else{ $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); } $emailsubject = tep_db_prepare_input($HTTP_POST_VARS['reason']) . ' ' . EMAIL_SUBJECT; if (tep_validate_email($email_address)) { tep_mail(STORE_OWNER, CONTACT_US_LIST, $emailsubject, $enquiry, $name, $email_address); if (CONTACT_US_LIST !=''){ $send_to_array=explode("," ,CONTACT_US_LIST); preg_match('/\<[^>]+\>/', $send_to_array[$send_to], $send_email_array); $send_to_email= eregi_replace (">", "", $send_email_array[0]); $send_to_email= eregi_replace ("<", "", $send_to_email); tep_mail(preg_replace('/\<[^*]*/', '', $send_to_array[$send_to]), $send_to_email, $emailsubject, $enquiry, $name, $email_address); }else{ //tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=send')); } } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } Quote Link to comment Share on other sites More sharing options...
vcg99 Posted January 26, 2011 Share Posted January 26, 2011 Hi I've just installed this contribution, but for some reason the contact us section keeps going to the bottom of the page instead of to the right of the page lists, you can see here http://thegraphicsboat.co.uk/contact_us.php could someone advise what coding I need to change to get the page to Display correctly. Many thanks Michelle Quote Link to comment Share on other sites More sharing options...
danil0 Posted February 7, 2011 Share Posted February 7, 2011 Hello I m using OS 2.3 have anyone find anything about contact us broblem...When a customer with Greek name sends the form, The field with his name is comming like Chinnese... Have you find anything for resolve? Thank you Daniel Quote Link to comment Share on other sites More sharing options...
AlainBensimon Posted February 12, 2011 Share Posted February 12, 2011 Hi Eric, I'd like to install that contribution. two questions. 1. Does it work with oscommerce 2.3.1? 2. Does your version still includes the french version like in the first version provided by jean-pierre? Thanks. Quote Link to comment Share on other sites More sharing options...
AlainBensimon Posted February 14, 2011 Share Posted February 14, 2011 I tried to install it on 2.3, but it was not so successful. opening hours did not appear, background color was different than mine etc. Quote Link to comment Share on other sites More sharing options...
TracyS Posted April 4, 2011 Share Posted April 4, 2011 Like many others, I am having the difficulty of the following error: "Your E-Mail Address does not appear to be valid - please make any necessary corrections." Yes, I am entering a valid email address. No, it does not send the email when this error occurs. Unfortunately, nothing I have tried seems to help. I can turn the "Verify Email Address through DNS" true or false, doesn't make a difference. I have tld.txt in catalog/includes and catalog/admin/includes. I do have Anti-Robot Registration Validation v2.5 and Super Contact Us is version 1.x Can someone please take a look and see if you notice anything wrong in the code? I have been searching through forum posts and scratching my head for a couple weeks now on this one. Thanks in advance! This is my contact_us.php code: <?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 (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // BOF Anti Robot Validation v2.5 if (ACCOUNT_VALIDATION == 'true' && CONTACT_US_VALIDATION == 'true') { require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ACCOUNT_VALIDATION); include_once('includes/functions/' . FILENAME_ACCOUNT_VALIDATION); } // EOF Anti Robot Registration v2.5 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { // BOF Anti Robotic Registration v2.5 if (ACCOUNT_VALIDATION == 'true' && CONTACT_US_VALIDATION == 'true') { $sql = "SELECT * FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE session_id = '" . tep_session_id() . "' LIMIT 1"; if( !$result = tep_db_query($sql) ) { $error = true; $entry_antirobotreg_error = true; $text_antirobotreg_error = ERROR_VALIDATION_1; } else { $entry_antirobotreg_error = false; $anti_robot_row = tep_db_fetch_array($result); if (( strtoupper($HTTP_POST_VARS['antirobotreg']) != $anti_robot_row['reg_key'] ) || ($anti_robot_row['reg_key'] == '') || (strlen($antirobotreg) != ENTRY_VALIDATION_LENGTH)) { $error = true; $entry_antirobotreg_error = true; $text_antirobotreg_error = ERROR_VALIDATION_2; } else { $sql = "DELETE FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE session_id = '" . tep_session_id() . "'"; if( !$result = tep_db_query($sql) ) { $error = true; $entry_antirobotreg_error = true; $text_antirobotreg_error = ERROR_VALIDATION_3; } else { $sql = "OPTIMIZE TABLE " . TABLE_ANTI_ROBOT_REGISTRATION . ""; if( !$result = tep_db_query($sql) ) { $error = true; $entry_antirobotreg_error = true; $text_antirobotreg_error = ERROR_VALIDATION_4; } else { $entry_antirobotreg_error = false; } } } } if ($entry_antirobotreg_error == true) $messageStack->add('contact', $text_antirobotreg_error); } // EOF Anti Robotic Registration v2.5 $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); // BOF Super Contact us enhancement 1.0 $order_id = tep_db_prepare_input($HTTP_POST_VARS['order_id']); if ($order_id <> NULL){ $enquiry = 'Order ID: ' . $order_id . "\n\n" . tep_db_prepare_input($HTTP_POST_VARS['enquiry']); }else{ // BOF Modify Contact Us $enquiry = 'Name: ' . tep_db_prepare_input($HTTP_POST_VARS['address']) . "\n\n" ; $enquiry .= 'Address: ' . tep_db_prepare_input($HTTP_POST_VARS['address']) . "\n\n" ; $enquiry .= 'City: ' . tep_db_prepare_input($HTTP_POST_VARS['city']) . "\n\n" ; $enquiry .= 'State: ' . tep_db_prepare_input($HTTP_POST_VARS['state']) . "\n\n" ; $enquiry .= 'Zip: ' . tep_db_prepare_input($HTTP_POST_VARS['zip']) . "\n\n" ; $enquiry .= 'Country: ' . tep_db_prepare_input($HTTP_POST_VARS['country']) . "\n\n" ; $enquiry .= 'Phone: ' . tep_db_prepare_input($HTTP_POST_VARS['phone']) . "\n\n" ; $enquiry .= 'Message: ' . tep_db_prepare_input($HTTP_POST_VARS['enquiry']); // EOF Modify Contact us } $emailsubject = EMAIL_SUBJECT . ' '. tep_db_prepare_input($HTTP_POST_VARS['reason']) ; //BOF Anti Robot Registration v2.5 if (!tep_validate_email($email_address)) { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } elseif (!$entry_antirobotreg_error == true) { // EOF Anti Robotic Registration v2.5 //BOF Edit Auto Emails in Admin if(SEND_CONTACT_US_RESPONSE=='true') tep_mail($name, $email_address, CONTACT_US_RESPONSE_EMAIL_SUBJECT, CONTACT_US_RESPONSE_EMAIL_TEXT."\n\n-------------------------Your Message:\n".$enquiry, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); //EOF Edit Auto Emails in Admin if (CONTACT_US_LIST !=''){ $send_to_array=explode("," ,CONTACT_US_LIST); preg_match('/\<[^>]+\>/', $send_to_array[$send_to], $send_email_array); $send_to_email= eregi_replace (">", "", $send_email_array[0]); $send_to_email= eregi_replace ("<", "", $send_to_email); tep_mail(preg_replace('/\<[^*]*/', '', $send_to_array[$send_to]), $send_to_email, $emailsubject, $enquiry, $name, $email_address); }else{ tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $emailsubject, $enquiry, $name, $email_address); } // EOF Super Contact us enhancement 1.0 // BOF Anti Robot Registration v2.5 tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); } // EOF Anti Robotic Registration v2.5 } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); ?> </head> <script type="text/javascript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> <body> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($messageStack->size('contact') > 0) { ?> <tr> <td><?php echo $messageStack->output('contact'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) { ?> <tr> <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <!-- BOF Super Contact us enhancement 1.0 //--> <?php } else { if (tep_session_is_registered('customer_id')) { $account_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); $account = tep_db_fetch_array($account_query); $name = $account['customers_firstname'] . ' ' . $account['customers_lastname']; $email = $account['customers_email_address']; } ?> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="5" class="infoBox"> <tr valign="top" class="InfoBoxContents"> <td valign="top" class="main"> <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td align="top"><STRONG><?php echo nl2br(STORE_NAME_ADDRESS); ?><br>Fax: 209-671-1921<br /> <a href="<?php echo tep_href_link('contact_us.php', 'NONSSL'); ?>" onClick="MM_openBrWindow('http://www.mountainmeadowherbs.com/Example3.htm','GoogleMap','scrollbars=yes,resizable=yes,width=600,height=400')">Find us with:<br /><img src="images/gmap.gif" alt="Google Map" /></a></STRONG></td> <td align="top"><br><?php echo (OPENING_HOURS); ?></td> </tr></table> </td> </tr> <tr> <td><?php echo (EXTRA_TEXT); ?></td> </tr> <tr> <td valign="top" class="main"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?> <?php echo ENTRY_NAME; ?><br> <?php echo tep_draw_input_field('name'); ?> <span class="inputRequirement">*</span> </td> </tr> <tr class="InfoBoxContents"> <td valign="top" class="main"> <?php echo ENTRY_EMAIL; ?><br> <?php echo tep_draw_input_field('email'); ?> <span class="inputRequirement">*</span> </td> </tr> <tr> <td valign="top" class="main"> <?php echo ENTRY_ADDRESS; ?><br> <?php echo tep_draw_input_field('address'); ?> </td> </tr> <tr> <td valign="top" class="main"> <?php echo ENTRY_CITY; ?><br> <?php echo tep_draw_input_field('city'); ?> </td> </tr> <tr> <td valign="top" class="main"> <?php echo ENTRY_STATE; ?><br> <select name="state"> <option value="">Select One</option> <option value="NA">Not Applicable</option> <option value="AK">Alaska</option> <option value="AL">Alabama</option> <option value="AR">Arkansas</option> <option value="AZ">Arizona</option> <option value="CA">California</option> <option value="CO">Colorado</option> <option value="CT">Connecticut</option> <option value="DC">District of Columbia</option> <option value="DE">Delaware</option> <option value="FL">Florida</option> <option value="GA">Georgia</option> <option value="HI">Hawaii</option> <option value="IA">Iowa</option> <option value="ID">Idaho</option> <option value="IL">Illinois</option> <option value="IN">Indiana</option> <option value="KS">Kansas</option> <option value="KY">Kentucky</option> <option value="LA">Louisiana</option> <option value="MA">Massachusetts</option> <option value="MD">Maryland</option> <option value="ME">Maine</option> <option value="MI">Michigan</option> <option value="MN">Minnesota</option> <option value="MO">Missouri</option> <option value="MS">Mississippi</option> <option value="MT">Montana</option> <option value="NC">North Carolina</option> <option value="ND">North Dakota</option> <option value="NE">Nebraska</option> <option value="NH">New Hampshire</option> <option value="NJ">New Jersey</option> <option value="NM">New Mexico</option> <option value="NV">Nevada</option> <option value="NY">New York</option> <option value="OH">Ohio</option> <option value="OK">Oklahoma</option> <option value="OR">Oregon</option> <option value="PA">Pennsylvania</option> <option value="RI">Rhode Island</option> <option value="SC">South Carolina</option> <option value="SD">South Dakota</option> <option value="TN">Tennessee</option> <option value="TX">Texas</option> <option value="UT">Utah</option> <option value="VA">Virginia</option> <option value="VT">Vermont</option> <option value="WA">Washington</option> <option value="WI">Wisconsin</option> <option value="WV">West Virginia</option> <option value="WY">Wyoming</option> <option value="AB">Alberta</option> <option value="BC">British Columbia</option> <option value="MB">Manitoba</option> <option value="NB">New Brunswick</option> <option value="NF">Newfoundland and Labrador</option> <option value="NT">North West Territories</option> <option value="NS">Nova Scotia</option> <option value="ON">Ontario</option> <option value="PE">Prince Edward Island</option> <option value="QC">Quebec</option> <option value="SK">Saskatchewan</option> <option value="YT">Yukon Territories</option> </select> </td> </tr> <tr> <td valign="top" class="main"> <?php echo ENTRY_ZIP; ?><br> <?php echo tep_draw_input_field('zip'); ?> </td> </tr> <tr> <td valign="top" class="main"> <?php echo ENTRY_COUNTRY; ?><br> <select name="country"> <option value="">Select One</option> <option value="Afghanistan">Afghanistan</option> <option value="Albania">Albania</option> <option value="Algeria">Algeria</option> <option value="Andorra">Andorra</option> <option value="Angola">Angola</option> <option value="Antigua">Antigua</option> <option value="Argentian">Argentian</option> <option value="Argentina">Argentina</option> <option value="Armenia">Armenia</option> <option value="Aruba">Aruba</option> <option value="Australia">Australia</option> <option value="Austria">Austria</option> <option value="Azerbaijan">Azerbaijan</option> <option value="Bahamas">Bahamas</option> <option value="Bahrain">Bahrain</option> <option value="Bangladesh">Bangladesh</option> <option value="Barbados">Barbados</option> <option value="Barbuda">Barbuda</option> <option value="Belarus">Belarus</option> <option value="Belgium">Belgium</option> <option value="Belize">Belize</option> <option value="Benin">Benin</option> <option value="Bermuda">Bermuda</option> <option value="Bhutan">Bhutan</option> <option value="Bosnia-Herzegovina">Bosnia-Herzegovina</option> <option value="Botswana">Botswana</option> <option value="Brazil">Brazil</option> <option value="British Virgin Islands">British Virgin Islands</option> <option value="Brunei">Brunei</option> <option value="Bulgaria">Bulgaria</option> <option value="Burkina Faso">Burkina Faso</option> <option value="Burma">Burma</option> <option value="Burundi">Burundi</option> <option value="Cambodia">Cambodia</option> <option value="Cameroon">Cameroon</option> <option value="Canada">Canada</option> <option value="Cape Verde">Cape Verde</option> <option value="Cayman Islands">Cayman Islands</option> <option value="Chad">Chad</option> <option value="Chile">Chile</option> <option value="China">China</option> <option value="Columbia">Columbia</option> <option value="Comoros">Comoros</option> <option value="Congo">Congo</option> <option value="Costa Rica">Costa Rica</option> <option value="Croatia">Croatia</option> <option value="Cuba">Cuba</option> <option value="Cyprus">Cyprus</option> <option value="Czech Republic">Czech Republic</option> <option value="Denmark">Denmark</option> <option value="Djibouti">Djibouti</option> <option value="Dominica">Dominica</option> <option value="Dominican Republic">Dominican Republic</option> <option value="Ecaudor">Ecaudor</option> <option value="Ecuador">Ecuador</option> <option value="Egypt">Egypt</option> <option value="El Salvador">El Salvador</option> <option value="Equatorial Guinea">Equatorial Guinea</option> <option value="Eritrea">Eritrea</option> <option value="Estonia">Estonia</option> <option value="Ethiopia">Ethiopia</option> <option value="Fiji">Fiji</option> <option value="Finland">Finland</option> <option value="France">France</option> <option value="Gabon">Gabon</option> <option value="Gambia">Gambia</option> <option value="Georgia">Georgia</option> <option value="Germany">Germany</option> <option value="Ghana">Ghana</option> <option value="Greece">Greece</option> <option value="Grendad">Grendad</option> <option value="Guatamala">Guatamala</option> <option value="Guinea">Guinea</option> <option value="Guinea-Bissau">Guinea-Bissau</option> <option value="Guyana">Guyana</option> <option value="Honduras">Honduras</option> <option value="Hong Kong">Hong Kong</option> <option value="Hungary">Hungary</option> <option value="Iceland">Iceland</option> <option value="India">India</option> <option value="Indonesia">Indonesia</option> <option value="Iran">Iran</option> <option value="Iraq">Iraq</option> <option value="Ireland">Ireland</option> <option value="Israel">Israel</option> <option value="Italy">Italy</option> <option value="Ivory Coast">Ivory Coast</option> <option value="Jamaica">Jamaica</option> <option value="Japan">Japan</option> <option value="Jordan">Jordan</option> <option value="Kazakhstan">Kazakhstan</option> <option value="Kenya">Kenya</option> <option value="Korea">Korea</option> <option value="Kuwait">Kuwait</option> <option value="Kyrghyzstan">Kyrghyzstan</option> <option value="Laos">Laos</option> <option value="Latvia">Latvia</option> <option value="Lebanon">Lebanon</option> <option value="Lesotho">Lesotho</option> <option value="Liberia">Liberia</option> <option value="Libya">Libya</option> <option value="Liechtenstein">Liechtenstein</option> <option value="Lithuania">Lithuania</option> <option value="Luxembourg">Luxembourg</option> <option value="Macedonia">Macedonia</option> <option value="Madagascar">Madagascar</option> <option value="Malawi">Malawi</option> <option value="Malaysia">Malaysia</option> <option value="Maldives">Maldives</option> <option value="Mali">Mali</option> <option value="Malta">Malta</option> <option value="Marshall Islands">Marshall Islands</option> <option value="Mauritania">Mauritania</option> <option value="Mauritius">Mauritius</option> <option value="Mexico">Mexico</option> <option value="Micronesia">Micronesia</option> <option value="Moldova">Moldova</option> <option value="Monaco">Monaco</option> <option value="Mongolia">Mongolia</option> <option value="Morocco">Morocco</option> <option value="Namibia">Namibia</option> <option value="Nepal">Nepal</option> <option value="Netherland Antilles">Netherland Antilles</option> <option value="Netherlands">Netherlands</option> <option value="NewZealand">NewZealand</option> <option value="Nicaragua">Nicaragua</option> <option value="Niger">Niger</option> <option value="Nigeria">Nigeria</option> <option value="North">North</option> <option value="Norway">Norway</option> <option value="Oman">Oman</option> <option value="Pakistan">Pakistan</option> <option value="Palau">Palau</option> <option value="Palestine">Palestine</option> <option value="Panama">Panama</option> <option value="Papua-NewGuinea">Papua-NewGuinea</option> <option value="Paraguay">Paraguay</option> <option value="Peru">Peru</option> <option value="Phillipines">Phillipines</option> <option value="Poland">Poland</option> <option value="Portugal">Portugal</option> <option value="Qatar">Qatar</option> <option value="Romania">Romania</option> <option value="Russia">Russia</option> <option value="Rwanda">Rwanda</option> <option value="Saint Kitts-Nevis">Saint Kitts-Nevis</option> <option value="Saint Lucia">Saint Lucia</option> <option value="Saint Vincents & Grenadines">Saint Vincents & Grenadines</option> <option value="San Marino">San Marino</option> <option value="Sao Tome & Principe">Sao Tome & Principe</option> <option value="Saudi Arabia">Saudi Arabia</option> <option value="Select One">Select One</option> <option value="Senegal">Senegal</option> <option value="Serbia">Serbia</option> <option value="Seychelles">Seychelles</option> <option value="Sierra Leone">Sierra Leone</option> <option value="Singapore">Singapore</option> <option value="Slovak">Slovak</option> <option value="Slovenia">Slovenia</option> <option value="Solomon Islands">Solomon Islands</option> <option value="Somalia">Somalia</option> <option value="South Africa">South Africa</option> <option value="South Korea">South Korea</option> <option value="Spain">Spain</option> <option value="Sri Lanka">Sri Lanka</option> <option value="Sudan">Sudan</option> <option value="Suriname">Suriname</option> <option value="Swaziland">Swaziland</option> <option value="Sweden">Sweden</option> <option value="Switzerland">Switzerland</option> <option value="Syria">Syria</option> <option value="Taiwan">Taiwan</option> <option value="Tajikistan">Tajikistan</option> <option value="Tanzania">Tanzania</option> <option value="Thailand">Thailand</option> <option value="Togo">Togo</option> <option value="Trinidad & Tobago">Trinidad & Tobago</option> <option value="Tunisia">Tunisia</option> <option value="Turkey">Turkey</option> <option value="Turkmenistan">Turkmenistan</option> <option value="Uganda">Uganda</option> <option value="Ukraine">Ukraine</option> <option value="United Arab Emirates">United Arab Emirates</option> <option value="United Kingdom">United Kingdom</option> <option value="United States">United States</option> <option value="Uruguay">Uruguay</option> <option value="US Virgin Islands">US Virgin Islands</option> <option value="Uzbekistan">Uzbekistan</option> <option value="Vanuatu">Vanuatu</option> <option value="Venezuela">Venezuela</option> <option value="Vietnam">Vietnam</option> <option value="West Indies">West Indies</option> <option value="Western Samoa">Western Samoa</option> <option value="Yemen">Yemen</option> <option value="Yugoslavia">Yugoslavia</option> <option value="Zambia">Zambia</option> <option value="Zimbabwe">Zimbabwe</option> </select> </td> </tr> <tr> <td valign="top" class="main"> <?php echo ENTRY_PHONE; ?><br> <?php echo tep_draw_input_field('phone'); ?> </td> </tr> <tr class="InfoBoxContents"> <td valign="top" class="main"> <?php if (CONTACT_US_LIST !=''){ echo SEND_TO_TEXT . '<br>'; if(SEND_TO_TYPE=='radio'){ foreach(explode("," ,CONTACT_US_LIST) as $k => $v) { if($k==0){ $checked=true; }else{ $checked=false; } echo tep_draw_radio_field('send_to', "$k", $checked). " " .preg_replace('/\<[^*]*/', '', $v); } }else{ foreach(explode("," ,CONTACT_US_LIST) as $k => $v) { $send_to_array[] = array('id' => $k, 'text' => preg_replace('/\<[^*]*/', '', $v)); } echo tep_draw_pull_down_menu('send_to', $send_to_array); } // echo ; } ?> </td> </tr> <tr class="InfoBoxContents"> <td valign="top" class="main"> <?php echo ENTRY_ORDER_ID; ?><br> <?php echo tep_draw_input_field('order_id'); ?> </td> </tr> <tr class="InfoBoxContents"> <td valign="top" class="main"> <?php echo ENTRY_REASON; ?><br> <select name="reason"> <?php echo '<option value="' . REASONS1 . '">' . REASONS1 . '</option>'; ?> <?php echo '<option value="' . REASONS2 . '">' . REASONS2 . '</option>'; ?> <?php echo '<option value="' . REASONS3 . '">' . REASONS3 . '</option>'; ?> <?php echo '<option value="' . REASONS4 . '">' . REASONS4 . '</option>'; ?> <?php echo '<option value="' . REASONS5 . '">' . REASONS5 . '</option>'; ?> <?php echo '<option value="' . REASONS6 . '">' . REASONS6 . '</option>'; ?> <?php echo '<option value="' . REASONS7 . '">' . REASONS7 . '</option>'; ?> <?php echo '<option value="' . REASONS8 . '">' . REASONS8 . '</option>'; ?> </select> </td> </tr> <tr class="InfoBoxContents"> <td valign="top" class="main"> <?php echo ENTRY_ENQUIRY; ?><BR> <!-- BOF This is the change for the Form Vunerability Fix //--> <?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15, tep_sanitize_string($_POST['enquiry']), '', false); ?> <!-- EOF This is the change for the Form Vunerability Fix //--> </td> </tr> <?php // BOF Anti Robot Registration v2.5 if (ACCOUNT_VALIDATION == 'true' && strstr($PHP_SELF,'contact_us') && CONTACT_US_VALIDATION == 'true') { ?> <tr class="InfoBoxContents"> <td class="main" align="right"><br><?php echo CATEGORY_ANTIROBOTREG; ?><br> <?php if (ACCOUNT_VALIDATION == 'true' && strstr($PHP_SELF,'contact_us') && CONTACT_US_VALIDATION == 'true') { if ($is_read_only == false || (strstr($PHP_SELF,'contact_us')) ) { $sql = "DELETE FROM " . TABLE_ANTI_ROBOT_REGISTRATION . " WHERE timestamp < '" . (time() - 3600) . "' OR session_id = '" . tep_session_id() . "'"; if( !$result = tep_db_query($sql) ) { die('Could not delete validation key'); } $reg_key = gen_reg_key(); $sql = "INSERT INTO ". TABLE_ANTI_ROBOT_REGISTRATION . " VALUES ('" . tep_session_id() . "', '" . $reg_key . "', '" . time() . "')"; if( !$result = tep_db_query($sql) ) { die('Could not check registration information'); } ?> <span class="smallText"> <?php echo ENTRY_ANTIROBOTREG; ?></span><br> <?php $check_anti_robotreg_query = tep_db_query("select session_id, reg_key, timestamp from anti_robotreg where session_id = '" . tep_session_id() . "'"); $new_guery_anti_robotreg = tep_db_fetch_array($check_anti_robotreg_query); $validation_images = tep_image_original('validation_png.php?rsid=' . $new_guery_anti_robotreg['session_id'] . '&' . time() . '.png'); if ($entry_antirobotreg_error == true) { ?> <span> <?php echo $validation_images . ' <br> '; echo tep_draw_input_field('antirobotreg') . ' <br><b><font color="red">' . ERROR_VALIDATION . '<br>' . $text_antirobotreg_error . '</b></font>'; } else { ?> <span> <?php echo $validation_images . ' <br> '; echo tep_draw_input_field('antirobotreg', $account['entry_antirobotreg']) . ' ' . ENTRY_ANTIROBOTREG_TEXT; } } } ?> </span></td> </tr> <?php } // EOF Anti Robot Registration v2.5 ?> <tr class="InfoBoxContents"> <td valign="top" align="right"><br><br> <?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?> </td> </tr> </table> </td> </tr> <?php } ?> <!-- EOF Super Contact us enhancement 1.0 //--> </table></form></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- 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 //--> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> </body> </html> PS - if there's any others files you'd like to see the code for just let me know. I don't know where else to look at this point. Quote ~Tracy Link to comment Share on other sites More sharing options...
TracyS Posted April 4, 2011 Share Posted April 4, 2011 Like many others, I am having the difficulty of the following error: "Your E-Mail Address does not appear to be valid - please make any necessary corrections." PS - It used to work just fine and I can't find any changes having been made between the last time it worked correctly and now that would have any affect on the contact_us.php page. Quote ~Tracy Link to comment Share on other sites More sharing options...
WWI Posted April 20, 2012 Share Posted April 20, 2012 Thank you so much for this package. I was wondering if you can help me figure out how to change the background color. Mine keeps coming up with this strange Periwinkle background. I'd like it to be white. Thank you again! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.