osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Contact Form not E-Mailing Properly

This is a discussion on Contact Form not E-Mailing Properly within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I modified the contact_us.php and languages/english/contact_us.php to add fields to my contact form. Having done so, I am now only ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-19-2005, 07:32 AM
Lurker
 
Join Date: Jan 2005
Location: Columbus, OH
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
silky
Default Contact Form not E-Mailing Properly

I modified the contact_us.php and languages/english/contact_us.php to add fields to my contact form. Having done so, I am now only receiving one field (the comments) in the e-mail. Can someone take a look and tell me what the error is? Everything is showing up fine on the screen (http://fenders-for-boats.com/marine-...contact_us.php), but I'm just not getting info in the e-mail.

Thanks in advance

Tina

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');

 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']);
   $enquiry = tep_db_prepare_input($HTTP_POST_VARS['inquiry']);

   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_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));
?>
<!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; ?>">
<meta name="robots" content="index,follow">
<meta name="Description" content="Superior Marine Division providing boating and marine supplies.">
<meta name="Keywords" content="marine supplies, boating supplies, dock fenders, whart fenders, pile fenders, evasuper, evasuper.com, superior marine division, boat fenders, yacht fenders, wood piling, concrete piling, piling caps">
<meta name="Author" content="Copyrigth 2005 ~ Silken Strand Web Solutions, Inc.">
<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"><div class="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"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><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"> </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 HEADING_TITLE . 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>
<?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">
                     <!--DWLayoutTable-->
                     <tr>
                       <td height="156" colspan="3" align="center" valign="middle" class="main"><strong>Superior
                         Marine Divsion<br>
                         of Wynne Corporation<br>
                         </strong>Postal Address<br>
                         6460 Fiesta Drive<br>
                         Columbus, OH 43235<br> <br>
                         Telephone: 1-800-324-6090<br>
                         Fax: 1-800-697-3772</td>
                     </tr>
                     <tr>
                       <td width="70" rowspan="7" valign="top"><!--DWLayoutEmptyCell--> </td>
                       <td width="266" height="24" align="right" valign="top" class="main"><?php echo ENTRY_NAME; ?>     <?php echo tep_draw_input_field('name'); ?></td>
                       <td width="408" rowspan="7" align="center" valign="middle" class="main">
                         <p> </p></td>
                     </tr>
                     <tr>
                       <td height="24" align="right" valign="top" class="main" c><?php echo ENTRY_EMAIL; ?>     <?php echo tep_draw_input_field('email'); ?></td>
                     </tr>
                     <tr>
                       <td height="24" align="right" valign="top" class="main"><?php echo ENTRY_PHONE; ?>     <?php echo tep_draw_input_field('phone'); ?></td>
                     </tr>
                     <tr>
                       <td height="24" align="right" valign="top" class="main"><?php echo ENTRY_ADDRESS; ?>     <?php echo tep_draw_input_field('address'); ?></td>
                     </tr>
                     <tr>
                       <td height="24" align="right" valign="top" class="main"><?php echo ENTRY_CITY; ?>     <?php echo tep_draw_input_field('city'); ?></td>
                     </tr>
                     <tr>
                       <td height="24" align="right" valign="top" class="main"><?php echo ENTRY_STATE; ?>     <?php echo tep_draw_input_field('state'); ?></td>
                     </tr>
                     <tr>
                       <td height="62" align="right" valign="top" class="main"><?php echo ENTRY_ZIP; ?>     <?php echo tep_draw_input_field('zip'); ?><br>
                         <br></td>
                     </tr>
                     <tr>
                       <td height="22" colspan="3" class="main"><?php echo ENTRY_ENQUIRY; ?></td>
                     </tr>
                     <!-- end silken strand mods -->
                     <tr>
                       <td height="22" colspan="3"><?php echo tep_draw_textarea_field('inquiry', 'soft', 50, 15); ?></td>
                     </tr>
                   </table></td>
         </tr>
       </table></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 tep_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></td>
<!-- body_text_eof //-->
 
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</div>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
osc not working properly. i can not add descriptions. atipe osCMax v2 Features Discussion 2 11-04-2005 11:26 PM
help, code not parsing out properly. loba osCMax v1.7 Discussion 1 03-21-2005 06:58 PM
order.php not listing orders properly?? Plz Help! greg_pd osCMax v1.7 Discussion 0 10-15-2004 02:09 PM
pages don't display properly using a MAC starchild osCommerce 2.2 Modification Help 3 05-21-2003 06:06 AM
Contact Form MOD drakonan osCommerce 2.2 Modification Help 1 01-03-2003 08:25 AM


All times are GMT -8. The time now is 05:14 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax