Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Email


PBlade

Recommended Posts

I am trying to include a additional field to be send to the webmaster in the contact_us.php.

 

http://www.khoush.com/shop/contact_us.php.

 

I have been trying to include the radio input field but the email sent is only showing name, email and enquiry. Can anyone tell me how can I solve this problem.

 

  if ($HTTP_GET_VARS['action'] == 'send') {

   if (tep_validate_email(trim($HTTP_POST_VARS['email']))) {

     tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $HTTP_POST_VARS['enquiry'], $HTTP_POST_VARS['name'], $HTTP_POST_VARS['email'], $HTTP_POST_VARS['subject']);

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

   } else {

     $error = true;

   }

 }



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

             <tr> 

               <td class="main"><?php echo tep_draw_selection_field('subject', 'radio', $HTTP_POST_VARS['subject']); ?> 

                 General Subject (other than the rest of subjects)</td>

               </tr>

             <tr> 

               <td class="main"><?php echo tep_draw_selection_field('subject', 'radio', $HTTP_POST_VARS['subject']); ?>

                 Lost Tracking Number</td>

             </tr>

             <tr> 

               <td class="main"><?php echo tep_draw_selection_field('subject', 'radio', $HTTP_POST_VARS['subject']); ?>

                 Lost RMA Number</td>

             </tr>

           </table>



Thank you.

kevin

Link to comment
Share on other sites

If I'm understanding you correctly, you should just need to change it like so:

                <td class="main"><?php echo tep_draw_selection_field('subject', 'radio', 'General'); ?> 

                 General Subject (other than the rest of subjects)</td>

               </tr>

             <tr> 

               <td class="main"><?php echo tep_draw_selection_field('subject', 'radio', 'Lost Tracking Number'); ?>

                 Lost Tracking Number</td>

             </tr>

             <tr> 

               <td class="main"><?php echo tep_draw_selection_field('subject', 'radio', 'Lost RMA Number'); ?>

                 Lost RMA Number</td>

             </tr>

           </table>

Link to comment
Share on other sites

Nope it didn't work just gave a error

Parse error: parse error in /home/khoushc/public_html/shop/contact_us.php on line 108

 

Anyone help please! How to include a radio input to be included the contact_us.php? Anyone!

 

kevin

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...