lucilue2003 Posted April 10, 2005 Posted April 10, 2005 I have a form (credit_card_authorization_online.php) and that has alot of input fields. How do i take all the data entered in the input fields and display that in a new popup window ? Thanks (in advance) for your help/comments.
lucilue2003 Posted April 12, 2005 Author Posted April 12, 2005 Can someone help me with a similar problem. I jsut finished a different form (similar to the contact_us.php) and i dont' know why it doesn't email me.... require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PACKAGE_REQUEST); // needs to be included earlier to set the success message in the messageStack $error = false; $email_body_msg = ""; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']); $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']); $telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']); $amount_of_adult_traveler = tep_db_prepare_input($HTTP_POST_VARS['traveler_adult']); $amount_of_children_traveler = tep_db_prepare_input($HTTP_POST_VARS['traveler_children']); $departure_city = tep_db_prepare_input($HTTP_POST_VARS['departure_city']); ..... if ($error == false) { if (tep_validate_email($email_address)) { $email_body_msg = ENTRY_FIRST_NAME . ":" . $firstname . "\n" . ENTRY_LAST_NAME . ":" . $lastname . "\n" . ENTRY_EMAIL_ADDRESS . ":" . $email_address . "\n" . ENTRY_TELEPHONE_NUMBER . ":" . $telephone . "\n" . ENTRY_AMOUNT_OF_ADULT_TRAVELER . ":" . $amount_of_adult_traveler . "\n" . ENTRY_AMOUNT_OF_CHILDREN_TRAVELER . ":" . $amount_of_children_traveler . "\n" . ENTRY_DEPARTURE_CITY . ":" . $departure_city . "\n" . ENTRY_DEPARTURE_DATE . ":" . $departure_date . "\n" . ENTRY_DESTINATION . ":" . $destination . "\n" . ENTRY_LENGTH_OF_STAY . ":" . $length_of_stay . "\n" . ENTRY_BUDGET_RANGE_MIN . ":" . $budget_range_min . "\n" . ENTRY_BUDGET_RANGE_MAX . ":" . $budget_range_max . "\n" . ENTRY_COMMENTS . ":" . $comments . "\n" . ENTRY_REFFERED_BY . ":" . $referred_by . "\n" . 'IP Address:' . "\t" . $REMOTE_ADDR . "\n" . 'Host Address:' . "\t" . gethostbyaddr($REMOTE_ADDR) . "\n" ; tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT,$email_body_msg,$HTTP_POST_VARS['name'], $HTTP_POST_VARS['email']); tep_redirect(tep_href_link(FILENAME_PACKAGE_REQUEST, 'action=success')); } } } thanks.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.