22 Apr 2007, 1:31 PM
New Zenner
- Join Date:
- Sep 2006
- Posts:
- 79
- Plugin Contributions:
- 0
Contact us Drop down list
I am trying to change our contact us page to allow a few dif options e.g.
Customer Support
Order tracking
Website Problems
etc etc
I have found this bit of code in includes/modules.pages/contact_us/header_php.php
// use contact us dropdown if defined
if (CONTACT_US_LIST !=''){
$send_to_array=explode("," ,CONTACT_US_LIST);
preg_match('/\<[^>]+\>/', $send_to_array[$_POST['send_to']], $send_email_array);
$send_to_email= eregi_replace (">", "", $send_email_array[0]);
$send_to_email= eregi_replace ("<", "", $send_to_email);
$send_to_name = preg_replace('/\<[^*]*/', '', $send_to_array[$_POST['send_to']]);
} else { //otherwise default to EMAIL_FROM and store name
$send_to_email = EMAIL_FROM;
$send_to_name = STORE_NAME;
I notice the // use contact us dropdown if defined at the top
My question How do I define the drop down list?
Thank you