customnw Posted September 17, 2007 Share Posted September 17, 2007 I am having the worst time figureing out how to change the address on my contact us page. I found the file in the file manager, but it has all code in there, and not even the address shown. Im very new to this php. www.customnutritionwarehouse.com Quote Link to comment https://forums.phpfreaks.com/topic/69663-help-changeing-the-address-on-my-contact-us-page/ Share on other sites More sharing options...
chocopi Posted September 17, 2007 Share Posted September 17, 2007 its probably in another file and then is being accessed using a variable or something, or you're just not lookinh hard enough ~ Chocopi Quote Link to comment https://forums.phpfreaks.com/topic/69663-help-changeing-the-address-on-my-contact-us-page/#findComment-350009 Share on other sites More sharing options...
customnw Posted September 17, 2007 Author Share Posted September 17, 2007 Here is the code for the contact page: <?php /* $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); $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']); if (tep_validate_email($email_address)) { tep_mail(Michael_Fox, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address); tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); $content = CONTENT_CONTACT_US; require(DIR_WS_TEMPLATES . TEMPLATENAME_MAIN_PAGE); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> I was trying to figure out it was accesed through something else, but im lost Quote Link to comment https://forums.phpfreaks.com/topic/69663-help-changeing-the-address-on-my-contact-us-page/#findComment-350020 Share on other sites More sharing options...
chocopi Posted September 18, 2007 Share Posted September 18, 2007 It could be: $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); but i don't think it is, so look for this file require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); so basically look for the contact us file within the language folder ~ Chocopi Quote Link to comment https://forums.phpfreaks.com/topic/69663-help-changeing-the-address-on-my-contact-us-page/#findComment-350580 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.