chrometweaks.org

Is there a free iPage web host with cpanel and fantastico?

Click Here To View All Answers...


Quick question... Is there a free iPage web host with cpanel and fantastico? Hoping for any response. My other question... OK, I'm receiving email from my customers but when I receive the email the phone number is showing up where the email address should be, and no email address is showing up at all. My store just went live, I'm receiving emails but I can't email them back. Not a very good first impression.

Here's(most of) the code:.

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

$phone_number = 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/avatar9.jpg, STORE_/img/avatar9.jpg_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $phone_number, $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));.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">.

<title><?php echo TITLE; ?></title>.

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

</head>.

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">.

<! header //>.

<?php require(DIR_WS_INCLUDES'header.php'); ?>.

<! header_eof //>.

<! body //>.

<table border="0" width="100%" cellspacing="3" cellpadding="3">.

 <tr>.

   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! left_navigation //>.

<?php require(DIR_WS_INCLUDES'column_left.php'); ?>.

<! left_navigation_eof //>.

   </table></td>.

<! body_text //>.

   <td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">.

     <tr>.

       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

         <tr>.

           <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>.

           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

         </tr>.

       </table></td>.

     </tr>.

     <tr>.

       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

     </tr>.

<?php.

 if ($messageStack->size('contact') > 0) {.

?>.

     <tr>.

       <td><?php echo $messageStack->output('contact'); ?></td>.

     </tr>.

     <tr>.

       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

     </tr>.

<?php.

 }.

 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {.

?>.

     <tr>.

       <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"')TEXT_SUCCESS; ?></td>.

     </tr>.

     <tr>.

       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

     </tr>.

     <tr>.

       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

         <tr class="infoBoxContents">.

           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

             <tr>.

               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

               <td align="right"><?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE)'</a>'; ?></td>.

               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

             </tr>.

           </table></td>.

         </tr>.

       </table></td>.

     </tr>.

<?php.

 } else {.

?>.

     <tr>.

       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

         <tr class="infoBoxContents">.

           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

             <tr>.

               <td class="main"><?php echo ENTRY_NAME; ?></td>.

             </tr>.

             <tr>.

               <td class="main"><?php echo tep_draw_input_field('name'); ?></td>.

             </tr>.

             <tr>.

               <td class="main"><?php echo ENTRY_EMAIL; ?></td>.

             </tr>.

             <tr>.

               <td class="main"><?php echo tep_draw_input_field('email'); ?></td>.

             </tr>.

    <tr>.

               <td class="main"><?php echo PHONE_NUMBER; ?></td>.

             </tr>.

             <tr>.

               <td class="main"><?php echo tep_draw_input_field('phone'); ?></td>.

             </tr>.

             <tr>.

               <td class="main"><?php echo ENTRY_ENQUIRY; ?></td>.

             </tr>.

             <tr>.

               <td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td>.

             </tr>.

           </table></td>.

         </tr>.

       </table></td>.

     </tr>.

     <tr>.

       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

     </tr>.

     <tr>.

       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

         <tr class="infoBoxContents">.

           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

             <tr>.

               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

               <td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>.

               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

             </tr>.

           </table></td>.

         </tr>.

       </table></td>.

     </tr>.

<?php.

 }.

?>.

   </table></form></td>.

<! body_text_eof //>.

   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! right_navigation //>.

<?php require(DIR_WS_INCLUDES'column_right.php'); ?>.

<! right_navigation_eof //>.

   </table></td>.

 </tr>.

</table>.

<! body_eof //>.

<! footer //>.

<?php require(DIR_WS_INCLUDES'footer.php'); ?>.

<! footer_eof //>.

<br>.

</body>.

</html>.

<?php require(DIR_WS_INCLUDES'application_bottom.php'); ?>..

Comments (46)

Yes sir! however you might wanna make sure and wait for another member here to confirm it as I am unsure. Better yet, why don't you call the iPage guys because they can help better...

Comment #1

This is just the contact us page with an email, name, phone number, and enquiry field. When I tested it though, it was all messed up like I mentioned in my original post.

Right now I have the original contact_us.php installed and it's working fine. So I must have mucked up the code when trying to add the phone number field, but I really need that field and I don't know where I made the mistake...

Comment #2

Oops, sorry. I read all of those fields and thought it was the create account file you were talking about. I don't know the answer to your question but your code is very similar to account_edit.php. In there, they use the second parameter for the phone to preset it. Maybe you need to set it to null?[/CODE] <td class="main"><?php echo tep_draw_input_field('phone', ''); ?></td>.

[CODE]Just a thought. If you haven't done so already, maybe you should just copy that code and edit it to make it fit your needs..

Jack..

Comment #3

Getting closer. I'm getting the input field, it's not screwing up the email address, but the phone number isn't appearing in the email..

I am still a newb with php even though I'm getting better. I only put the code you posted in the following section:.

<tr>.

<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="main"><?php echo ENTRY_NAME; ?></td>.

</tr>.

<tr>.

<td class="main"><?php echo tep_draw_input_field('name'); ?></td>.

</tr>.

<tr>.

<td class="main"><?php echo ENTRY_EMAIL; ?></td>.

</tr>.

<td class="main"><?php echo tep_draw_input_field('phone', ''); ?></td>.

<tr>.

<td class="main"><?php echo tep_draw_input_field('email'); ?></td>.

</tr>.

<tr>.

<td class="main"><?php echo ENTRY_ENQUIRY; ?></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td>.

</tr>.

</table></td>.

</tr>.

This post has been edited by.

XPATRIOTSx.

: 01 October 2004, 19:39..

Comment #4

Try removing all of the code for all but one item, say the name, and make sure that works. Then add the code for the phone. If it fails, remove the code for the name and see what happens. IOW, try to isolate where the problem is by simplifying..

Jack..

Comment #5

I've looked at this your not picking up the information from the phone number box properly. I'm not sure why!.

In the code at the uppermost portion of the PhP - if you add the phone number to the enquiry it will get sent ok so something like this.....

$phone = "214312412";.

$enquiry .= $phone;.

Then you'll just get than number taged onto the end of the enquiry... Problem is picking up the number from the box!.

I think it's to do with the clicking of the 'continue button' this sends you back round to the start of the file. To an If statement. If you did like I did and have just renamed and created a copy of contat_us.php you'll find that instead of re-visiting the file you clicked continue in (in my case I called it Jack.php) you'll be congratulated on itsending by contact_us.php - this is the wrong script how did it find this!.

Thats what we should be tracking down..

As you might guess this is causing me the same problem as your self.... If you've already solved this do me a favour and enlighten me... if I do crack it I will do the same for yourself..... unfortunately I think my php must be as good as yours!..

Comment #6

Still haven't figured it out but I will indeed let you know..

Comment #7

OK, I'm receiving email from my customers but when I receive the email the phone number is showing up where the email address should be, and no email address is showing up at all. My store just went live, I'm receiving emails but I can't email them back. Not a very good first impression.

Here's(most of) the code:.

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

$phone_number = 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_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $phone_number, $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));.

?>.

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.

<html <?php echo HTML_PARAMS; ?>>.

<head>.

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">.

<title><?php echo TITLE; ?></title>.

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER)DIR_WS_CATALOG; ?>">.

<link rel="stylesheet" type="text/css" href="stylesheet.css">.

</head>.

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">.

<! header //>.

<?php require(DIR_WS_INCLUDES'header.php'); ?>.

<! header_eof //>.

<! body //>.

<table border="0" width="100%" cellspacing="3" cellpadding="3">.

 <tr>.

   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! left_navigation //>.

<?php require(DIR_WS_INCLUDES'column_left.php'); ?>.

<! left_navigation_eof //>.

   </table></td>.

<! body_text //>.

   <td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">.

     <tr>.

       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

         <tr>.

           <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>.

           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

         </tr>.

       </table></td>.

     </tr>.

     <tr>.

       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

     </tr>.

<?php.

 if ($messageStack->size('contact') > 0) {.

?>.

     <tr>.

       <td><?php echo $messageStack->output('contact'); ?></td>.

     </tr>.

     <tr>.

       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

     </tr>.

<?php.

 }.

 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {.

?>.

     <tr>.

       <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"')TEXT_SUCCESS; ?></td>.

     </tr>.

     <tr>.

       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

     </tr>.

     <tr>.

       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

         <tr class="infoBoxContents">.

           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

             <tr>.

               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

               <td align="right"><?php echo '<a href="'tep_href_link(FILENAME_DEFAULT)'">'tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE)'</a>'; ?></td>.

               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

             </tr>.

           </table></td>.

         </tr>.

       </table></td>.

     </tr>.

<?php.

 } else {.

?>.

     <tr>.

       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

         <tr class="infoBoxContents">.

           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

             <tr>.

               <td class="main"><?php echo ENTRY_NAME; ?></td>.

             </tr>.

             <tr>.

               <td class="main"><?php echo tep_draw_input_field('name'); ?></td>.

             </tr>.

             <tr>.

               <td class="main"><?php echo ENTRY_EMAIL; ?></td>.

             </tr>.

             <tr>.

               <td class="main"><?php echo tep_draw_input_field('email'); ?></td>.

             </tr>.

    <tr>.

               <td class="main"><?php echo PHONE_NUMBER; ?></td>.

             </tr>.

             <tr>.

               <td class="main"><?php echo tep_draw_input_field('phone'); ?></td>.

             </tr>.

             <tr>.

               <td class="main"><?php echo ENTRY_ENQUIRY; ?></td>.

             </tr>.

             <tr>.

               <td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td>.

             </tr>.

           </table></td>.

         </tr>.

       </table></td>.

     </tr>.

     <tr>.

       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

     </tr>.

     <tr>.

       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">.

         <tr class="infoBoxContents">.

           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

             <tr>.

               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

               <td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>.

               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

             </tr>.

           </table></td>.

         </tr>.

       </table></td>.

     </tr>.

<?php.

 }.

?>.

   </table></form></td>.

<! body_text_eof //>.

   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! right_navigation //>.

<?php require(DIR_WS_INCLUDES'column_right.php'); ?>.

<! right_navigation_eof //>.

   </table></td>.

 </tr>.

</table>.

<! body_eof //>.

<! footer //>.

<?php require(DIR_WS_INCLUDES'footer.php'); ?>.

<! footer_eof //>.

<br>.

</body>.

</html>.

<?php require(DIR_WS_INCLUDES'application_bottom.php'); ?>..

Comment #8

Do you have the admin options set to require those fields? If not, anything can be entered in them. Have you tried placing an order yourself and seeing how it comes back?.

Jack..

Comment #9


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