yfn20 Posted September 18, 2005 Posted September 18, 2005 Hi, I'm trying to add another enquiry form on our website, so I have edited and renamed the /catalog/contact_us.php and /catalog/includes/languages/english/contact_us.php that came with osC. I think I have edited the /catalog/includes/languages/english/contact_us.php correctly. I have also edited the information.php, filenames.php and english.php files accordingly. The problem I now have is that the email I get from this form only shows the Full Name, and nothing else. Here are the parts of the file I have edited: ========== require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_NEWFILE); $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']); $ordernum = tep_db_prepare_input($HTTP_POST_VARS['ordernum']); $field1 = tep_db_prepare_input($HTTP_POST_VARS['field1']); $field2 = tep_db_prepare_input($HTTP_POST_VARS['field2']); if (tep_validate_email($email_address)) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $name, $email_address, $ordernum, $field1, $field2); tep_redirect(tep_href_link(FILENAME_NEWFILE, 'action=success')); } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_NEWFILE)); ========== <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_ORDERNUM; ?></td> </tr> <tr> <td class="main"><?php echo tep_draw_input_field('ordernum'); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_FIELD1; ?></td> </tr> <tr> <td class="main"><?php echo tep_draw_input_field('field1'); ?></td> </tr> <tr> <td class="main"><?php echo ENTRY_FIELD2; ?></td> </tr> <tr> <td class="main"><?php echo tep_draw_input_field('field2'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_INFORMATION; ?></td> </tr> </table></td> ========== Is there anything else I need to do, other than this? Ideally, I need the email to show the name, email, order number, field1 and field2. I'm not very good at this php thing, so any help will be greatly appreciated. Thank you in advance. Fai
Recommended Posts
Archived
This topic is now archived and is closed to further replies.