Good question... I dunno what is the answer to that question. I'll do some research in Google and get back to you if I got an good answer. You should email the people at Verisign as they probably could assist you..
Unless you've modified the tep_email function, I think you're using it wrong, because it's in this format (i.e. six fields only):.
Tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address).
You're passing nine fields?..
Liooks like I have a made a mistake I just need to have extra fields in the form.
Standard is.
NAME.
EMAIL.
ENQ.
I need to add the extra.
PHONE.
TITLE.
FORMATT.
Stuff like that!!!.
Can you please advise how this is done!.
My code!.
<?php.
Require('includes/application_top.php');.
Require(DIR_WS_LANGUAGES$language'/'FILENAME_MR_RENTAL);.
$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']);.
$title = tep_db_prepare_input($HTTP_POST_VARS['title']);.
$format = tep_db_prepare_input($HTTP_POST_VARS['format']);.
$phone = tep_db_prepare_input($HTTP_POST_VARS['phone']);.
If (tep_validate_email($email_address)) {.
Tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $name, $email_address, $enquiry, $title, $format, $phone);.
Tep_redirect(tep_href_link(FILENAME_MR_RENTAL, 'action=success'));.
} else {.
$error = true;.
$messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);.
}.
}.
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_MR_RENTAL));.
?>.
<!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 align="center" border="0" width="<?php echo PAGE_WIDTH; ?>" 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', tep_href_link(FILENAME_MR_RENTAL, 'action=send')); ?>.
<table border="0" width="100%" cellspacing="0" cellpadding="0">.
<tr>.
<td align="center">.
<?php.
If ($banner = tep_banner_exists('dynamic', '650x80')) {.
Echo tep_display_banner('static', $banner);.
}.
?>.
</td>.
</tr>.
<tr>.
<td>.
<table border="0" width="100%" cellspacing="0" cellpadding="0">.
<tr>.
<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 tep_image(DIR_WS_IMAGES'table_background_man_on_board.gi', 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>.
<?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_PHONE; ?></td>.
</tr>.
<tr>.
<td class="main"><?php echo tep_draw_input_field('phone'); ?></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_TITLE; ?></td>.
</tr>.
<tr>.
<td class="main"><?php echo tep_draw_input_field('title'); ?> <?php echo EG_TITLE; ?></td>.
</tr>.
<tr>.
<td class="main"><?php echo ENTRY_FORMAT; ?></td>.
</tr>.
<tr>.
<td class="main"><?php echo tep_draw_input_field('format'); ?> <?php echo EG_FORMAT; ?></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>.
<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_submit.gif', IMAGE_BUTTON_SUBMIT); ?></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 //>.
<td width="<?php echo BOX_WIDTH; ?>" valign="top">.
<table border="0" width="<?php echo BOX_WIDT; ?>" cellspacing="0" cellpadding="2">.
<! right_navigation //><?php require(DIR_WS_INCLUDES'column_right.php'); ?><! right_navigation_eof //>.
</table>.
</td>.
</tr>.
</table>.
<! body_eof //>.
<! footer //>.
<?php require(DIR_WS_INCLUDES'footer.php'); ?>.
<! footer_eof //>.
<br>.
</body>.
</html>.
<?php require(DIR_WS_INCLUDES'application_bottom.php'); ?>..
You would need something like this:.
If (tep_validate_email($email_address)) {.
Tep_mail(STORE_OWNER, WHOLESALE_EMAIL, EMAIL_SUBJECT, 'Sales Person: '$salesperson"\r\n\r\n"'Email: '$email"\r\n\r\n"'PO Number: '$ponumber"\r\n\r\n"'Vendor: '$vendor ."\r\n\r\n"'Ship By: '$shipby"\r\n\r\n" .'Item Or Part Number: '$itemorpartnumber"\r\n\r\n" .'QTY: '$qty"\r\n\r\n".'Comments / Special Instructions: '$enquiry, $name, $email_address);.
You need the \r\n\r\n in there...
This works perfect, thanks heaps.... just had to prep_field first then add the extra fields and your input....
Perfect...
Is it possible to have the contact.php sent to 2 different email address???.
How would this be done???..
By duplicating the tep_email line and then changing the destination email address...
I have just noticed that the contact_us.php is not sending all the information entered into the fields?? no matter what fields are filled the only information that is sent is the comments section!.
Any ideas why this is happening???.
I have duplicated the contact_us.php and made a second contact form, I believe I have made the correct changes to the new contact files to reflect what I need it to do ... now I have found that both of my contact files will only send the comments field in the email....
Is there another file that the forms use??? I have a lot of contribs installed so I could of changed something long ago....
Please help...
I have been playing arround with this for a while and in the following code I have found that the email will only send the first variable called....
$error = false;.
If (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {.
$name = tep_db_prepare_input($HTTP_POST_VARS['name']);.
$phone = tep_db_prepare_input($HTTP_POST_VARS['phone']);.
$email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);.
$title = tep_db_prepare_input($HTTP_POST_VARS['title']);.
$format = tep_db_prepare_input($HTTP_POST_VARS['format']);.
$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, $name, $phone, $email_address, $title, $format, $enquiry);.
Or if I change this it will send that field:.
If (tep_validate_email($email_address)) {.
Tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $phone, $name, $email_address, $title, $format, $enquiry);.
Any ideas???.
BTW this is my custom/duplicate contact_us.php page.....