marcinmf Posted March 8, 2006 Share Posted March 8, 2006 Hi, If you have put the email like this in the admin panel --> :Sales <marcinmf@yahoo.com>, Support marcinmf@swim.pl - It's normal. The second email is not writed the good way. You have to write Support <marcinmf@swim.pl> it's gonna work after this.. I make a mistake while typing post, my emails are set correctly. Sales <marcinmf@yahoo.com>, Support <marcinmf@swim.pl> Do you have any other ideas what could be the problem? Thanks. Quote Link to comment Share on other sites More sharing options...
rainton Posted March 8, 2006 Share Posted March 8, 2006 I will test this contribution and be back with you this week-end... excuse my English but is Italian I uses yours contributions Super Contact us enhancement 1,0, wants to use with to Visual Verify code, has made as you have said, but the control of the code does not execute me. Here the my contact_us.php <?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_CONTACT_US); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send') && tep_email_isfromdomain($_POST['email'])) { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_ISFROMDOMAIN_ERROR); } elseif (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']); // BOF Super Contact us enhancement 1.0 $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)) { 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 tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } //VISUAL VERIFY CODE start require(DIR_WS_FUNCTIONS . 'visual_verify_code.php'); $code_query = tep_db_query("select code from visual_verify_code where oscsid = '" . tep_session_id($HTTP_GET_VARS[tep_session_name()]) . "'"); $code_array = tep_db_fetch_array($code_query); $code = $code_array['code']; tep_db_query("DELETE FROM " . TABLE_VISUAL_VERIFY_CODE . " WHERE oscsid='" . $vvcode_oscsid . "'"); //remove the visual verify code associated with this session to clean database and ensure new results $user_entered_code = $HTTP_POST_VARS['visual_verify_code']; if (!(strcasecmp($user_entered_code, $code) == 0)) { //make the check case insensitive $error = true; $messageStack->add('contact', VISUAL_VERIFY_CODE_ENTRY_ERROR); } //VISUAL VERIFY CODE stop } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_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="730" cellspacing="0" cellpadding="0"> <tr> <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="610" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><? echo ' <img src="images/intestazioni/CONTATTI.jpg" width="590" height="33"/> '; ?></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="605" cellspacing="0" cellpadding="0"> <tr> <td width="650" height="0"></td> <td width="600"></td> </tr> <tr> <td rowspan="11" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2" align="left" valign="top" class="main"></td> </tr> <tr> <td width="26" height="120" align="left" valign="top" class="main"></td> <td width="542" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="333" height="120" align="left" valign="top" class="menuCAT"> <STRONG><?php echo nl2br(STORE_NAME_ADDRESS); ?></STRONG><br> <br><br> <?php echo (OPENING_HOURS); ?> </td> <td width="1"> </td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top" class="main"><p> </p></td> </tr> </table> </td> <td height="40" valign="top" class="main"> <?php echo ENTRY_NAME; ?><br> <?php echo tep_draw_input_field('name'); ?> </td> </tr> <tr> <td height="4"></td> </tr> <tr> <td height="40" valign="top" class="main"> <?php echo ENTRY_EMAIL; ?><br> <?php echo tep_draw_input_field('email'); ?> </td> </tr> <tr> <td height="4"></td> </tr> <tr> <td height="40" 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> <td height="4"></td> </tr> <tr> <td height="40" 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>'; ?> </select> </td> </tr> <tr> <td height="4"></td> </tr> <tr> <td height="200" width="350" 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> <tr> <td height="4"></td> </tr> <!-- VISUAL VERIFY CODE-- START--> <tr> <td class="main"> <?php echo VISUAL_VERIFY_CODE_CATEGORY; ?> <br> <?php echo VISUAL_VERIFY_CODE_TEXT_INSTRUCTIONS; ?> <?php echo tep_draw_input_field('visual_verify_code'); ?> <?php //can replace the following loop with $visual_verify_code = substr(str_shuffle (VISUAL_VERIFY_CODE_CHARACTER_POOL), 0, rand(3,6)); if you have PHP 4.3 $visual_verify_code = ""; for ($i = 1; $i <= rand(3,6); $i++){ $visual_verify_code = $visual_verify_code . substr(VISUAL_VERIFY_CODE_CHARACTER_POOL, rand(0, strlen(VISUAL_VERIFY_CODE_CHARACTER_POOL)-1), 1); } $vvcode_oscsid = tep_session_id($HTTP_GET_VARS[tep_session_name()]); tep_db_query("DELETE FROM " . TABLE_VISUAL_VERIFY_CODE . " WHERE oscsid='" . $vvcode_oscsid . "'"); $sql_data_array = array('oscsid' => $vvcode_oscsid, 'code' => $visual_verify_code); tep_db_perform(TABLE_VISUAL_VERIFY_CODE, $sql_data_array); $visual_verify_code = ""; echo('<img src="' . FILENAME_VISUAL_VERIFY_CODE_DISPLAY . '?vvc=' . $vvcode_oscsid . '"'); ?> <?php echo VISUAL_VERIFY_CODE_BOX_IDENTIFIER; ?> </td> </tr> <tr> <td height="4"></td> </tr> <!-- VISUAL VERIFY CODE-- STOP --> <tr> <td height="66" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="547" height="62" valign="top" align="middle"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> </tr> <tr> <td height="4"></td> </tr> </table> </td> </tr> <tr> <td height="41" colspan="2" align="left" class="main"><br> </td> </tr> </table> </td> </tr> <tr> <td height="41" colspan="2" align="left" class="main"><br> </td> </tr> <?php } ?> <!-- EOF Super Contact us enhancement 1.0 //--> </table> </form></td> <td width="100%" valign="top"> <td width=145 valign=top> </td> </tr> <tr> <td><? if (tep_session_is_registered('customer_id'))echo '<a href="checkout_shipping.php"><img src="images/login/concludi.jpg" width="161" border="0" /></a>'; ?></td> </tr> <tr> <td><? if (tep_session_is_registered('customer_id'))echo '<a href="account_newsletters.php"><img src="images/login/newsletter.jpg" width="161" border="0" /></a>';?></td> </tr> <tr> <td><? if (tep_session_is_registered('customer_id'))echo '<a href="products_new.php"><img src="images/login/arrivi.jpg" width="161" border="0" /></a>'; ?></td> </tr> <tr> <td></td> </tr> <tr> <td></td> </tr> <tr> <td><? if (tep_session_is_registered('customer_id')) echo ' <table width="161" border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="images/login/banner.jpg" width="5" height="10" /></td> <td><img src="images/login/banner1.jpg" width="141" height="10" /></td> <td><img src="images/login/banner2.jpg" width="15" height="10" /></td> </tr> <tr> <td valign="top" background="images/login/banner3.jpg"><img src="images/login/banner3.jpg" width="5" height="135" /></td> <td valign="top"><table width="141" border="0" cellpadding="0" cellspacing="0"> </table></td> <td valign="top" background="images/login/banner4.jpg"><img src="images/login/banner4.jpg" width="15" height="135" /></td> </tr> <tr> <td><img src="images/login/banner5.jpg" width="5" height="14" /></td> <td><img src="images/login/banner6.jpg" width="141" height="14" /></td> <td><img src="images/login/banner7.jpg" width="15" height="14" /></td> </tr> </table> '; ?> </td> </tr> <tr> <td><? if (tep_session_is_registered('customer_id'))echo ' <table width="161" border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="images/login/banner.jpg" width="5" height="10" /></td> <td><img src="images/login/banner1.jpg" width="141" height="10" /></td> <td><img src="images/login/banner2.jpg" width="15" height="10" /></td> </tr> <tr> <td valign="top" background="images/login/banner3.jpg"><img src="images/login/banner3.jpg" width="5" height="135" /></td> <td valign="top"><table width="141" border="0" cellpadding="0" cellspacing="0"> </table></td> <td valign="top" background="images/login/banner4.jpg"><img src="images/login/banner4.jpg" width="15" height="135" /></td> </tr> <tr> <td><img src="images/login/banner5.jpg" width="5" height="14" /></td> <td><img src="images/login/banner6.jpg" width="141" height="14" /></td> <td><img src="images/login/banner7.jpg" width="15" height="14" /></td> </tr> </table> '; ?> </td> </td> <!-- body_text_eof //--> </tr> </table> </td> <td width=3></td> <td width=161 valign=top> </td> </tr> </table> </td> </tr> </table> </td> <?php ?> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Thank you and congratulations for the contributions. Quote Link to comment Share on other sites More sharing options...
John-Peter Posted March 9, 2006 Author Share Posted March 9, 2006 excuse my English but is Italian I uses yours contributions Super Contact us enhancement 1,0, wants to use with to Visual Verify code, has made as you have said, but the control of the code does not execute me. Here the my contact_us.php Rainto, Ok, I have changed your code at the beginning. It's the following code which cause me an error too. : $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send') && tep_email_isfromdomain($_POST['email'])) { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_ISFROMDOMAIN_ERROR); } elseif (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']); I changed these code for : $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']); And it's work fine now, try it and tell me if all the thing is ok now.... Quote John -------------------- osCommerce 2.3.4 Bootstrap Edge Link to comment Share on other sites More sharing options...
John-Peter Posted March 9, 2006 Author Share Posted March 9, 2006 Hello I am having a small problem, everything is working fine, just when I specify two emails to choose from ex. Sales <marcinmf@yahoo.com>, Support marcinmf@swim.pl In admin panel, After choosing first option on the form I am receiving message fine, but after choosing second radio button message is going to the both e-mails instead to only second one. Is that DB problem or there is something wrong in the code? Thank you for any help. This is my php code. <?php /* $Id: contact_us.php,v 1.1.1.1 2004/03/04 23:37:58 ccwjr 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'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_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']); // BOF Super Contact us enhancement 1.0 $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)) { 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 tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); $content = CONTENT_CONTACT_US; require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Martin, It's all your code for the contact_us.php ? I don't know, very bizarre. Try to do the drop list instead the radio button and tell me if it's do the same thing... Quote John -------------------- osCommerce 2.3.4 Bootstrap Edge Link to comment Share on other sites More sharing options...
John-Peter Posted March 9, 2006 Author Share Posted March 9, 2006 Here is my contact_us.php: Hi, I don't see any error for what you say excepted for these code I have removed : require('includes/application_top.php'); ################# $page_query = tep_db_query("select p.pages_id, p.sort_order, p.status, s.pages_title, s.pages_html_text from " . TABLE_PAGES . " p LEFT JOIN " .TABLE_PAGES_DESCRIPTION . " s on p.pages_id = s.pages_id where p.status = 1 and s.language_id = '" . (int)$languages_id . "' and p.page_type = 2"); $page_check = tep_db_fetch_array($page_query); $pagetext=stripslashes($page_check[pages_html_text]); ################# I have removed it because it caused me error for the table. I don't know if you need this and I have added at the end just after </table></form></td> the following code because I need this to be able to test your code : <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> After this, all is working. So the problem don't come from my contribution "Super Contact us enhancement 1.0". Check this out. Quote John -------------------- osCommerce 2.3.4 Bootstrap Edge Link to comment Share on other sites More sharing options...
rainton Posted March 9, 2006 Share Posted March 9, 2006 Rainto, Ok, I have changed your code at the beginning. It's the following code which cause me an error too. : $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send') && tep_email_isfromdomain($_POST['email'])) { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_ISFROMDOMAIN_ERROR); } elseif (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']); I changed these code for : $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']); And it's work fine now, try it and tell me if all the thing is ok now.... Unfortunately it does not work... I try to better explain the problem... if you insert email, the module always comes sent without control of the CODE, it tries to only insert the email is you will see that the form it will come sent even if the CODE are empty. Of continuation the file with the modifications from you suggested. I repeat, I send the form I insert alone email and not to insert CODE, the form comes sended without to control 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 © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_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']); // BOF Super Contact us enhancement 1.0 $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)) { 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 tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } //VISUAL VERIFY CODE start require(DIR_WS_FUNCTIONS . 'visual_verify_code.php'); $code_query = tep_db_query("select code from visual_verify_code where oscsid = '" . tep_session_id($HTTP_GET_VARS[tep_session_name()]) . "'"); $code_array = tep_db_fetch_array($code_query); $code = $code_array['code']; tep_db_query("DELETE FROM " . TABLE_VISUAL_VERIFY_CODE . " WHERE oscsid='" . $vvcode_oscsid . "'"); //remove the visual verify code associated with this session to clean database and ensure new results $user_entered_code = $HTTP_POST_VARS['visual_verify_code']; if (!(strcasecmp($user_entered_code, $code) == 0)) { //make the check case insensitive $error = true; $messageStack->add('contact', VISUAL_VERIFY_CODE_ENTRY_ERROR); } //VISUAL VERIFY CODE stop } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_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="730" cellspacing="0" cellpadding="0"> <tr> <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="610" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><? echo ' <img src="images/intestazioni/CONTATTI.jpg" width="590" height="33"/> '; ?></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="605" cellspacing="0" cellpadding="0"> <tr> <td width="650" height="0"></td> <td width="600"></td> </tr> <tr> <td rowspan="11" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2" align="left" valign="top" class="main"></td> </tr> <tr> <td width="26" height="120" align="left" valign="top" class="main"></td> <td width="542" valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="333" height="120" align="left" valign="top" class="menuCAT"> <STRONG><?php echo nl2br(STORE_NAME_ADDRESS); ?></STRONG><br> <br><br> <?php echo (OPENING_HOURS); ?> </td> <td width="1"> </td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top" class="main"><p> </p></td> </tr> </table> </td> <td height="40" valign="top" class="main"> <?php echo ENTRY_NAME; ?><br> <?php echo tep_draw_input_field('name'); ?> </td> </tr> <tr> <td height="4"></td> </tr> <tr> <td height="40" valign="top" class="main"> <?php echo ENTRY_EMAIL; ?><br> <?php echo tep_draw_input_field('email'); ?> </td> </tr> <tr> <td height="4"></td> </tr> <tr> <td height="40" 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> <td height="4"></td> </tr> <tr> <td height="40" 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>'; ?> </select> </td> </tr> <tr> <td height="4"></td> </tr> <tr> <td height="200" width="350" 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> <tr> <td height="4"></td> </tr> <!-- VISUAL VERIFY CODE-- START--> <tr> <td class="main"> <?php echo VISUAL_VERIFY_CODE_CATEGORY; ?> <br> <?php echo VISUAL_VERIFY_CODE_TEXT_INSTRUCTIONS; ?> <?php echo tep_draw_input_field('visual_verify_code'); ?> <?php //can replace the following loop with $visual_verify_code = substr(str_shuffle (VISUAL_VERIFY_CODE_CHARACTER_POOL), 0, rand(3,6)); if you have PHP 4.3 $visual_verify_code = ""; for ($i = 1; $i <= rand(3,6); $i++){ $visual_verify_code = $visual_verify_code . substr(VISUAL_VERIFY_CODE_CHARACTER_POOL, rand(0, strlen(VISUAL_VERIFY_CODE_CHARACTER_POOL)-1), 1); } $vvcode_oscsid = tep_session_id($HTTP_GET_VARS[tep_session_name()]); tep_db_query("DELETE FROM " . TABLE_VISUAL_VERIFY_CODE . " WHERE oscsid='" . $vvcode_oscsid . "'"); $sql_data_array = array('oscsid' => $vvcode_oscsid, 'code' => $visual_verify_code); tep_db_perform(TABLE_VISUAL_VERIFY_CODE, $sql_data_array); $visual_verify_code = ""; echo('<img src="' . FILENAME_VISUAL_VERIFY_CODE_DISPLAY . '?vvc=' . $vvcode_oscsid . '"'); ?> <?php echo VISUAL_VERIFY_CODE_BOX_IDENTIFIER; ?> </td> </tr> <tr> <td height="4"></td> </tr> <!-- VISUAL VERIFY CODE-- STOP --> <tr> <td height="66" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="547" height="62" valign="top" align="middle"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> </tr> <tr> <td height="4"></td> </tr> </table> </td> </tr> <tr> <td height="41" colspan="2" align="left" class="main"><br> </td> </tr> </table> </td> </tr> <tr> <td height="41" colspan="2" align="left" class="main"><br> </td> </tr> <?php } ?> <!-- EOF Super Contact us enhancement 1.0 //--> </table> </form></td> <td width="100%" valign="top"> <td width=145 valign=top> </td> </tr> <tr> <td><? if (tep_session_is_registered('customer_id'))echo '<a href="checkout_shipping.php"><img src="images/login/concludi.jpg" width="161" border="0" /></a>'; ?></td> </tr> <tr> <td><? if (tep_session_is_registered('customer_id'))echo '<a href="account_newsletters.php"><img src="images/login/newsletter.jpg" width="161" border="0" /></a>';?></td> </tr> <tr> <td><? if (tep_session_is_registered('customer_id'))echo '<a href="products_new.php"><img src="images/login/arrivi.jpg" width="161" border="0" /></a>'; ?></td> </tr> <tr> <td></td> </tr> <tr> <td></td> </tr> <tr> <td><? if (tep_session_is_registered('customer_id')) echo ' <table width="161" border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="images/login/banner.jpg" width="5" height="10" /></td> <td><img src="images/login/banner1.jpg" width="141" height="10" /></td> <td><img src="images/login/banner2.jpg" width="15" height="10" /></td> </tr> <tr> <td valign="top" background="images/login/banner3.jpg"><img src="images/login/banner3.jpg" width="5" height="135" /></td> <td valign="top"><table width="141" border="0" cellpadding="0" cellspacing="0"> </table></td> <td valign="top" background="images/login/banner4.jpg"><img src="images/login/banner4.jpg" width="15" height="135" /></td> </tr> <tr> <td><img src="images/login/banner5.jpg" width="5" height="14" /></td> <td><img src="images/login/banner6.jpg" width="141" height="14" /></td> <td><img src="images/login/banner7.jpg" width="15" height="14" /></td> </tr> </table> '; ?> </td> </tr> <tr> <td><? if (tep_session_is_registered('customer_id'))echo ' <table width="161" border="0" cellpadding="0" cellspacing="0"> <tr> <td><img src="images/login/banner.jpg" width="5" height="10" /></td> <td><img src="images/login/banner1.jpg" width="141" height="10" /></td> <td><img src="images/login/banner2.jpg" width="15" height="10" /></td> </tr> <tr> <td valign="top" background="images/login/banner3.jpg"><img src="images/login/banner3.jpg" width="5" height="135" /></td> <td valign="top"><table width="141" border="0" cellpadding="0" cellspacing="0"> </table></td> <td valign="top" background="images/login/banner4.jpg"><img src="images/login/banner4.jpg" width="15" height="135" /></td> </tr> <tr> <td><img src="images/login/banner5.jpg" width="5" height="14" /></td> <td><img src="images/login/banner6.jpg" width="141" height="14" /></td> <td><img src="images/login/banner7.jpg" width="15" height="14" /></td> </tr> </table> '; ?> </td> </td> <!-- body_text_eof //--> </tr> </table> </td> <td width=3></td> <td width=161 valign=top> </td> </tr> </table> </td> </tr> </table> </td> <?php ?> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Quote Link to comment Share on other sites More sharing options...
jorgejordao Posted March 9, 2006 Share Posted March 9, 2006 Hi, I don't see any error for what you say excepted for these code I have removed : require('includes/application_top.php'); ################# $page_query = tep_db_query("select p.pages_id, p.sort_order, p.status, s.pages_title, s.pages_html_text from " . TABLE_PAGES . " p LEFT JOIN " .TABLE_PAGES_DESCRIPTION . " s on p.pages_id = s.pages_id where p.status = 1 and s.language_id = '" . (int)$languages_id . "' and p.page_type = 2"); $page_check = tep_db_fetch_array($page_query); $pagetext=stripslashes($page_check[pages_html_text]); ################# I have removed it because it caused me error for the table. I don't know if you need this and I have added at the end just after </table></form></td> the following code because I need this to be able to test your code : <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> After this, all is working. So the problem don't come from my contribution "Super Contact us enhancement 1.0". Check this out. I've tried from the beginning and gives the same error, i have removed the lines that you removed and its the same..... sorry for be anoying i will try to check this out........ but no one had the same problem, right? thanks again Quote Link to comment Share on other sites More sharing options...
John-Peter Posted March 9, 2006 Author Share Posted March 9, 2006 I've tried from the beginning and gives the same error, i have removed the lines that you removed and its the same..... sorry for be anoying i will try to check this out........ but no one had the same problem, right? thanks again Right.... Quote John -------------------- osCommerce 2.3.4 Bootstrap Edge Link to comment Share on other sites More sharing options...
John-Peter Posted March 9, 2006 Author Share Posted March 9, 2006 I've tried from the beginning and gives the same error, i have removed the lines that you removed and its the same..... sorry for be anoying i will try to check this out........ but no one had the same problem, right? thanks again Hi, Ok I undestand now what you talk about. It's doing the same thing to me, you are absolutely right about this. It's not my fault, I just included the code from this contibution (Visual Verify Code (VVC) security) into my contribution because somebody here asked it but I don't have released officially with my contribution. The Visual Verify Code (VVC) security have a bug, we have to fix this, anyone can work on this ? This contribution don't have a forum for bug. They think it's work, but it's not. I try this contribution alone without my contribution and it's doing the sme thing. Quote John -------------------- osCommerce 2.3.4 Bootstrap Edge Link to comment Share on other sites More sharing options...
jorgejordao Posted March 9, 2006 Share Posted March 9, 2006 I've tried to eliminate the lines of that contribution para it gaves the same error......... i will keep testing thanks again Quote Link to comment Share on other sites More sharing options...
Guest Posted March 14, 2006 Share Posted March 14, 2006 Hi, I have problem with the contact us "visual verify code", my contact us page was working properly before switching to a new server. After migrating to new server the code image doesn't show anymore, you can have a look at http://myevita.com/contact_us.php is it something about PHP need to be installed?? Does anyone of you knows the problem? Thank you. Quote Link to comment Share on other sites More sharing options...
John-Peter Posted March 14, 2006 Author Share Posted March 14, 2006 Hi, I have problem with the contact us "visual verify code", my contact us page was working properly before switching to a new server. After migrating to new server the code image doesn't show anymore, you can have a look at http://myevita.com/contact_us.php is it something about PHP need to be installed?? Does anyone of you knows the problem? Thank you. I just checked and your problem is solved I think :rolleyes: , the problem was i think, it's your hosting have not enabling the GD Library but now it's ok. nice site web by the way. Quote John -------------------- osCommerce 2.3.4 Bootstrap Edge Link to comment Share on other sites More sharing options...
Guest Posted March 14, 2006 Share Posted March 14, 2006 I just checked and your problem is solved I think :rolleyes: , the problem was i think, it's your hosting have not enabling the GD Library but now it's ok. nice site web by the way. Yea, I think the admin installed that now. Thank you. Do you help people doing contribution upgrade/installation? How much do you charge for that? Quote Link to comment Share on other sites More sharing options...
chuckh2d Posted March 15, 2006 Share Posted March 15, 2006 I don't know how much of the current VVC patch is shared in Super Contact Us, but it looks as though people on your thread have been having similar problems with messages not being sent. The current version 2.1 of VVC is missing an essential file in includes/languages/english/images/buttons/ called button_submit.gif (other languages don't have it --or an equivalent-- either) I've posted a usable button_submit.gif at the contribution page and hopefully it will become part of vvc2.2 rather soon. Quote Link to comment Share on other sites More sharing options...
John-Peter Posted March 15, 2006 Author Share Posted March 15, 2006 I don't know how much of the current VVC patch is shared in Super Contact Us, but it looks as though people on your thread have been having similar problems with messages not being sent. The current version 2.1 of VVC is missing an essential file in includes/languages/english/images/buttons/ called button_submit.gif (other languages don't have it --or an equivalent-- either) I've posted a usable button_submit.gif at the contribution page and hopefully it will become part of vvc2.2 rather soon. Hi, You're right about this and I knew that, but a lot of person have it's own button, so your button don't match with their button. I will try to do a button universel include in my future release of Super Contact us enhancement 2.0 By the way, just a question. have you try Super Contact us enhancement ? If not, install it and you will see what the problem is when you incorporate VCC in it. All is working except if you don't put the security code, it's send the email with no error. I have to modify the code from VCC to be full compatible with Super Contact us enhancement. Install it and check that, you will understand. Quote John -------------------- osCommerce 2.3.4 Bootstrap Edge Link to comment Share on other sites More sharing options...
John-Peter Posted March 15, 2006 Author Share Posted March 15, 2006 Yea, I think the admin installed that now. Thank you. Do you help people doing contribution upgrade/installation? How much do you charge for that? Yes, of course. Quote John -------------------- osCommerce 2.3.4 Bootstrap Edge Link to comment Share on other sites More sharing options...
jetski Posted March 19, 2006 Share Posted March 19, 2006 Super Contact US Enhancement 1.1 Will not deliver my email, after submitting the form it gives me this message "Your enquiry has been successfully sent to the Store Owner." but never get the email. I have installed this contrib and all looks good but no emails, I run test emails and get none. Just wondering if someone has the resolution to this problem and if so what you they did to solve this problem. Thanks.... Quote Link to comment Share on other sites More sharing options...
jetski Posted March 20, 2006 Share Posted March 20, 2006 Super Contact US Enhancement 1.1 Will not deliver my email, after submitting the form it gives me this message "Your enquiry has been successfully sent to the Store Owner." but never get the email. I have installed this contrib and all looks good but no emails, I run test emails and get none. Just wondering if someone has the resolution to this problem and if so what you they did to solve this problem. Thanks.... Problem Resolved: Found the problem in my php.ini file under the root directory. This is the line I had to change: [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = admin@localhost Changed to this: [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = your@yourdomain.com Quote Link to comment Share on other sites More sharing options...
maz Posted March 20, 2006 Share Posted March 20, 2006 Hi I need to add more fields on the contact us page and turn it into an application form which is emailed back to me. (cant find any forms contributions). The problem I have is HOW to get the information to show in the BODY of the email? At the moment the reason for 'enquiry' is showing only in the 'subject' heading part of my emails. I need it to be displayed in the body with the rest of the message. question ... answer question ... answer question ...answer ANy help would be appreciated Thanks Maz Quote Link to comment Share on other sites More sharing options...
John-Peter Posted March 20, 2006 Author Share Posted March 20, 2006 Hi I need to add more fields on the contact us page and turn it into an application form which is emailed back to me. (cant find any forms contributions). The problem I have is HOW to get the information to show in the BODY of the email? At the moment the reason for 'enquiry' is showing only in the 'subject' heading part of my emails. I need it to be displayed in the body with the rest of the message. question ... answer question ... answer question ...answer ANy help would be appreciated Thanks Maz Hi, It's not the goal of this contribution. You want a form so it's another thing, it's have to be programmed for this. I don't have time to d this. Sorry. Quote John -------------------- osCommerce 2.3.4 Bootstrap Edge Link to comment Share on other sites More sharing options...
John-Peter Posted March 20, 2006 Author Share Posted March 20, 2006 Problem Resolved: Found the problem in my php.ini file under the root directory. This is the line I had to change: [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = admin@localhost Changed to this: [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = your@yourdomain.com Hi, Sorry to arrive too late for helping you, I'm happy that you have solved your problem. Quote John -------------------- osCommerce 2.3.4 Bootstrap Edge Link to comment Share on other sites More sharing options...
iPAL Posted March 29, 2006 Share Posted March 29, 2006 Great contib Jeep. Gives a great profesional look. My install went fine even with several other contribs. Only problem I'm haviving is the store fonts (minds much smaller and drabby looking) and how to change the store hours and drop down questions. Probably simple but I over looked it. Nothing new showed up in admin except 4 "contact us" email names. So how do I change the rest and make it look like your contrib? Quote Link to comment Share on other sites More sharing options...
Guest Posted April 5, 2006 Share Posted April 5, 2006 Hi JEEP, I really believe that this is a great contrib, I can't get it to show up though. I posted my contact_us.tpl.php file. Could you please let me know what I should change? I tried multiple things, but I am still learning PHP. Thanks a lot in advance! <?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="<?php echo CELLPADDING_SUB; ?>"> <?php // BOF: Lango Added for template MOD if (SHOW_HEADING_TITLE_ORIGINAL == 'yes') { $header_text = '?' //EOF: Lango Added for template MOD ?> <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 // BOF: Lango Added for template MOD }else{ $header_text = HEADING_TITLE; } // EOF: Lango Added for template MOD ?> <?php // BOF: Lango Added for template MOD if (MAIN_TABLE_BORDER == 'yes'){ table_image_border_top(false, false, $header_text); } // EOF: Lango Added for template MOD ?> <?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> <?php // BOF: Lango Added for template MOD if (MAIN_TABLE_BORDER == 'yes'){ table_image_border_bottom(); } // EOF: Lango Added for template MOD ?> <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_template_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> <?php } else { ?> <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 class="main"><?php echo ENTRY_NAME; ?></td> </tr> <tr> <td class="main"><?php echo tep_draw_input_field('name'); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_EMAIL; ?></td> </tr> <tr> <td class="main"><?php echo tep_draw_input_field('email'); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_ENQUIRY; ?></td> </tr> <tr> <td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td> </tr> </table></td> </tr> </table></td> </tr> <?php // BOF: Lango Added for template MOD if (MAIN_TABLE_BORDER == 'yes'){ table_image_border_bottom(); } // EOF: Lango Added for template MOD ?> <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 tep_template_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <?php } ?> </table></form> it might be a problem with the following code, which has to be there at some points: <?php // BOF: Lango Added for template MOD if (MAIN_TABLE_BORDER == 'yes'){ table_image_border_bottom(); } // EOF: Lango Added for template MOD ?> Quote Link to comment Share on other sites More sharing options...
pedro_vde Posted April 12, 2006 Share Posted April 12, 2006 Thank You for the Contribution... JEEP! I'm brand new to osCommerce - programming and even to Linux... But thanks to these contributions our webshop is almost active (www.image-sound.com/catalog) kind regards from Belgium Pedro Quote Link to comment Share on other sites More sharing options...
John-Peter Posted April 12, 2006 Author Share Posted April 12, 2006 Thank You for the Contribution... JEEP! I'm brand new to osCommerce - programming and even to Linux... But thanks to these contributions our webshop is almost active (www.image-sound.com/catalog) kind regards from Belgium Pedro Pedro, Thank's to the kind words and welcome to the osCommerce communauty. Quote John -------------------- osCommerce 2.3.4 Bootstrap Edge 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.