adrian.pearce Posted August 9, 2006 Share Posted August 9, 2006 I have created an enquiry email form but i can't send the telephone number input box on the email The senders email address appears together with subject and the enquiry, but no telephone number. I have Full Name: E-Mail Address: Telephone No: doesn't appear in email Enquiry: I have created the file advertise.php which is located in the root and includes/languages/english/advertise.php Also have defined it in the filenames.php as 'define('FILENAME_ADVERTISE', 'advertise.php');' Can anyone help please ............ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADVERTISE); $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']); $telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']); $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, $telephone); tep_redirect(tep_href_link(FILENAME_ADVERTISE, 'action=success')); } else { $error = true; $messageStack->add('advertise', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ADVERTISE)); Link to comment Share on other sites More sharing options...
adrian.pearce Posted August 10, 2006 Author Share Posted August 10, 2006 I have created an enquiry email form but i can't send the telephone number input box on the emailThe senders email address appears together with subject and the enquiry, but no telephone number. I have Full Name: E-Mail Address: Telephone No: doesn't appear in email Enquiry: I have created the file advertise.php which is located in the root and includes/languages/english/advertise.php Also have defined it in the filenames.php as 'define('FILENAME_ADVERTISE', 'advertise.php');' Can anyone help please ............ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ADVERTISE); $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']); $telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']); $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, $telephone); tep_redirect(tep_href_link(FILENAME_ADVERTISE, 'action=success')); } else { $error = true; $messageStack->add('advertise', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ADVERTISE)); Can anyone help with this...... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.