grant101 Posted August 23, 2006 Share Posted August 23, 2006 how do i make it email the message to me when a customer fills out the correct fields. This is the page: http://www.blingpartsaustralia.com/shop/contact_us.php Heres my code for that page, What am I missing? <?php /* $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $ E-Commerce Solutions Copyright (c) 2005 www.flash-template-design.com 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['enquiry']); if (tep_validate_email($email_address)) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address); tep_redirect(tep_href_link(FILENAME_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 XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <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="style.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 //--> <tr> <td width="173" align="right" valign="top" bgcolor="#FFFFFF"> <table width="171" cellpadding="0" cellspacing="0" border="0"> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> </table> </td> <td width="557" valign="top" align="left"> <table border="0" cellpadding="0" cellspacing="0" width="555"> <tr> <td width="100%" height="100%" valign="top" bgcolor="#FFFFFF"> <table border="0" width="100%" cellpadding="0" cellspacing="0" > <tr> <td width="100%" height="19" valign="top"> <div class="header"><img src="images/marker_header.gif" width="3" height="5" alt="" style="margin:0px 6px 2px 0px;" /> <?php echo HEADING_TITLE; ?></div> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></td> </tr> <tr> <td valign="top" height="416" style="padding:0px 5px; " class="infoBox"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '1'); ?></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> <table border="0" width="100%" cellspacing="0" cellpadding="0" > <tr> <td class="main" align="center"><?php echo TEXT_SUCCESS; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td align="left"><table border="0" width="100%" cellspacing="1" cellpadding="2" > <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> </table></td></tr> <?php } else { ?> <tr> <td align="left" ><table border="0" width="100%" cellspacing="1" cellpadding="2"> <tr class="infoBoxContents"> <td width="100%" style="padding:5px; "><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 align="left" style="padding-left:3px; "><?php echo tep_draw_textarea_field('enquiry', 'soft', 30, 7); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td colspan="2"><table border="0" width="100%" cellspacing="1" cellpadding="2" > <tr class="infoBoxContents"> <td align="left"><table border="0" width="180" 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> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td colspan="2" height="1" background="images/hpoint.gif" align="left"><img src="images/hpoint.gif" width="3" height="1" alt=""></td> </tr> <tr> <td colspan="2" height="1" background="images/hpoint.gif" align="left" style="margin-top:2px;"><img src="images/hpoint.gif" width="3" height="1" alt=""></td> </tr> <tr> <br/> <td colspan="2" align="left"> <Table border="0" cellpadding="0" cellspacing="0" > <tr align="left"> <td width="50%" style="padding-left:20px;"><br/><span style="font-weight:bold;">Postal Address:</span> <br/> Bling Parts Australia <br/>P.O Box 1022,<br/>Aitkenvale B.C, <br/>QLD, 4814 Australia</span> </td><br> <br> <tr align="left"> <td width="50%" style="padding-left:20px;"><br/><span style="font-weight:bold;">Phone:</span> 0410 819950<br> <tr align="left"> <td width="50%" style="padding-left:20px;"><br/><span style="font-weight:bold;">E-mail:</span> [email protected]<br> <br/> <span style="font-weight:bold;"></span></td> </tr></table></td> </tr> </table></td> </tr> <?php } ?> </table></td></tr> </table></td> </form> </tr> </table> </td> </tr> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Any help appricated. Regards Grant. Link to comment Share on other sites More sharing options...
grant101 Posted August 23, 2006 Author Share Posted August 23, 2006 anyone ? help please... I can't seem to work it out. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.