Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I need help here please


Guest

Recommended Posts

Hello I am not expert in oscommerce or the php but I think what I am asking about is very easy well... I changed the faq questions for the gift vouchar page to a general faq questions for my site... I tried to put many questions on the page but the answer is always at the bottom of the page which the user can't see it when clicking the question it appears lower than the page he has to scroll down to see the answer.... I don;t know what to do to show the answer in the correct place you can view this in the next linkhere is a link for the faq you can try it yourself

well the code used for the page is here

<?php
/*
 $Id: faq.php,v 1.1.1.1.2.2 2003/05/04 12:24:25 wilt Exp $

 The Exchange Project - Community Made Shopping!
 http://www.theexchangeproject.org

 Gift Voucher System v1.0
 Copyright (c) 2001,2002 Ian C Wilson
 http://www.phesis.org

 Released under the GNU General Public License
*/

define('NAVBAR_TITLE', 'Direct From Egypt FAQS');
define('HEADING_TITLE', 'Here is general questions asked by our clients');

define('TEXT_INFORMATION', '<a name="Top"></a>
 <a href="'.tep_href_link(FILENAME_FAQ,'faq_item=1','NONSSL').'">This is a test for question number 1 </a><br>
 <a href="'.tep_href_link(FILENAME_FAQ,'faq_item=2','NONSSL').'">Question2 </a><br>
 <a href="'.tep_href_link(FILENAME_FAQ,'faq_item=3','NONSSL').'">Question3 </a><br>
 <a href="'.tep_href_link(FILENAME_FAQ,'faq_item=4','NONSSL').'">Question4 </a><br>
 <a href="'.tep_href_link(FILENAME_FAQ,'faq_item=5','NONSSL').'">Question5 </a><br>
 <a href="'.tep_href_link(FILENAME_FAQ,'faq_item=6','NONSSL').'">Question6 </a><br>
 <a href="'.tep_href_link(FILENAME_FAQ,'faq_item=7','NONSSL').'">Question7 </a><br>
 <a href="'.tep_href_link(FILENAME_FAQ,'faq_item=8','NONSSL').'">Question8 </a><br>
 <a href="'.tep_href_link(FILENAME_FAQ,'faq_item=9','NONSSL').'">Question9 </a><br>
 <a href="'.tep_href_link(FILENAME_FAQ,'faq_item=10','NONSSL').'">Question10 </a><br>  
<a href="'.tep_href_link(FILENAME_FAQ,'faq_item=11','NONSSL').'">Question11 </a><br>
<a href="'.tep_href_link(FILENAME_FAQ,'faq_item=12','NONSSL').'">Question12 </a><br>
<a href="'.tep_href_link(FILENAME_FAQ,'faq_item=13','NONSSL').'">Question13 </a><br>
<a href="'.tep_href_link(FILENAME_FAQ,'faq_item=14','NONSSL').'">Question14 </a><br>
<a href="'.tep_href_link(FILENAME_FAQ,'faq_item=15','NONSSL').'">Question15 </a><br>
');
switch ($HTTP_GET_VARS['faq_item']) {
 case '1':
define('SUB_HEADING_TITLE','This is a test for question 1?');
define('SUB_HEADING_TEXT','This is a test for answer 1');
 break;
 case '2':
define('SUB_HEADING_TITLE','Question2');
define('SUB_HEADING_TEXT','Answer2');  
 break;
 case '3':
 define('SUB_HEADING_TITLE','Question3');
 define('SUB_HEADING_TEXT','Answer3');
 break;
 case '4':
 define('SUB_HEADING_TITLE','Question4');
 define('SUB_HEADING_TEXT','Answer4');
 break;
 case '5':
 define('SUB_HEADING_TITLE','Question5');
 define('SUB_HEADING_TEXT','Answer5');
 break;
 case '6':
define('SUB_HEADING_TITLE','Question6');
define('SUB_HEADING_TEXT','Answer6');
 break;
 case '7':
define('SUB_HEADING_TITLE','Question7');
define('SUB_HEADING_TEXT','Answer7');  
 break;
 case '8':
 define('SUB_HEADING_TITLE','Question8');
 define('SUB_HEADING_TEXT','Answer8');
 break;
 case '9':
 define('SUB_HEADING_TITLE','Question9');
 define('SUB_HEADING_TEXT','Answer9');
 break;
 case '10':
 define('SUB_HEADING_TITLE','Question10');
 define('SUB_HEADING_TEXT','Answer10');
 break;  
case '11':
 define('SUB_HEADING_TITLE','Question11');
 define('SUB_HEADING_TEXT','Answer11');
 break;
case '12':
 define('SUB_HEADING_TITLE','Question12');
 define('SUB_HEADING_TEXT','Answer12');
 break;
case '13':
 define('SUB_HEADING_TITLE','Question13');
 define('SUB_HEADING_TEXT','Answer13');
 break;
case '14':
 define('SUB_HEADING_TITLE','Question14');
 define('SUB_HEADING_TEXT','Answer14');
 break;
case '15':
 define('SUB_HEADING_TITLE','Question15');
 define('SUB_HEADING_TEXT','Answer15');
 break;
 default:
 define('SUB_HEADING_TITLE','');
 define('SUB_HEADING_TEXT','Please choose from one of the questions above.');

 }
?>

 

 

Thanks :'( :'( :blink:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...