chrometweaks.org

Anyone know the steps in creating a webmail iPage hosting service?

Click Here To View All Answers...


Quick question... Anyone know the steps in creating a webmail iPage hosting service? Hoping for any answer or 2. 2nd question I got is.. Im trying to add additional form data in the contact us page. I'm able to copy the entries and post variables for 'name' as 'phone' and the contact page works, however the email doesnt show up with the phone number. Any ideas on getting this to work? Thanks!.

 $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']);.

   $phone = tep_db_prepare_input($HTTP_POST_VARS['phone']);.

   $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);.

   if (tep_validate_email($email_address)) {.

     tep_mail(STORE_/img/avatar2.jpg, STORE_/img/avatar2.jpg_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address, $phone);.

     tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));.

   } else {.

     $error = true;.

     $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);.

   }.

 }..

Comments (4)

Good question... I dunno what is the answer. I'll do some Googling and get back to you if I got an answer. You should email the people at iPage as they probably could give you help..

Comment #1

Hi there!.

I added the code and get this error..

Parse error: parse error, unexpected T_IF in /home/partyple/public_html/onlineshop/client_info.php on line 26.

Any ideas please...

Comment #2

By the way, here is the code line 19 - 27.

$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']);.

   $phone = tep_db_prepare_input($HTTP_POST_VARS['telephone']);.

  $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);.

  $enquiry .= "\n\n"'Telephone Number: '$telephone.

 if (tep_validate_email($email_address)) {.

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

If anyone can see the erro, please let me know..

Many thanks in advance...

Comment #3

Thanks for the reply!.

Yeah I get a parse error as well , heres the fix...add a semi colon....

$enquiry .= "\n\n"'Telephone Number: '$phone;.

Tested, worked, HPdL is my hero......

Comment #4

Wicked!.

Thanks Johnnymke!.

By the way, what is HPdL????..

Comment #5


This question was taken from a support group/message board and re-posted here so others can learn from it.