Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add more form fields to contact_us.php


danthman

Recommended Posts

I am trying to add more form fields to contact_us.php. I have added "amount" to the following code:

f (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']);

$amount = tep_db_prepare_input($HTTP_POST_VARS['amount']);

if (tep_validate_email($email_address)) {

tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address, $amount);

and added the form field for "amount" . I defined "amount" as define('ENTRY_AMOUNT', 'Amount Needed:') in the includes/languages/english/contact_us.php file but I cannot get it to send the "amount" information in the email. What did I miss?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...