Guest Posted June 7, 2003 Posted June 7, 2003 i was adding more info to the gv-faq.php and was getting errors was wondering if some could help fix and where can i pull the name of where the store is located such as state or country the error pops up with the text in the quote In no event shall site_store_name.com be liable for compensatory, incidental, indirect, special, consequential or exemplary damages. if site_store_name's limited warranty or limitation of liability shall for any reason whatsoever be held unenforceable or inapplicable, holder agrees that site_store_name's liability shall not exceed the sum of one u.s. dollar. Because some states or jurisdictions do not allow the exclusion or limitation of implied warranties or liability, the above limitation may not apply to you. i posted the file below <?php /* $Id: gv_faq.php,v 1.1.1.1 2002/11/28 00:30:42 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_1', 'Gift Voucher FAQ'); define('HEADING_TITLE', 'Gift Voucher FAQ'); define('TEXT_INFORMATION', '<a name="Top"></a> <a href="'.tep_href_link(FILENAME_GV_FAQ,'faq_item=1','NONSSL').'">Purchasing Gift Vouchers</a><br> <a href="'.tep_href_link(FILENAME_GV_FAQ,'faq_item=2','NONSSL').'">How to send Gift vouchers</a><br> <a href="'.tep_href_link(FILENAME_GV_FAQ,'faq_item=3','NONSSL').'">Buying with Gift Vouchers</a><br> <a href="'.tep_href_link(FILENAME_GV_FAQ,'faq_item=4','NONSSL').'">Redeeming Gift Vouchers</a><br> <a href="'.tep_href_link(FILENAME_GV_FAQ,'faq_item=5','NONSSL').'">Gift Certificate Warrenty</a><br> <a href="'.tep_href_link(FILENAME_GV_FAQ,'faq_item=6','NONSSL').'">When problems occur</a><br> '); switch ($HTTP_GET_VARS['faq_item']) { case '1': define('SUB_HEADING_TITLE','Purchasing Gift Vouchers.'); define('SUB_HEADING_TEXT','Gift Vouchers are purchased just like any other item in our store. You can pay for them using the stores standard payment method(s). Once purchased the value of the Gift Voucher will be added to your own personal Gift Voucher Account. If you have funds in your Gift Voucher Account, you will notice a new box appears in the right hand column on any store page. This box shows the amount available in your Gift Voucher Account, and also provides a link to a page where you can send the Gift Voucher to some one via email.'); break; case '2': define('SUB_HEADING_TITLE','How to Send Gift Vouchers.'); define('SUB_HEADING_TEXT','To send a Gift Voucher you need to go to our Send Gift Voucher Page. You can find the link to this page in the Informations Box in the left hand column of each page. When you send a Gift Voucher, you need to sepcify the following. The name of the person you are sending the Gift Voucher too. The email address of the person you are sending the Gift Voucher too. The amount you want to send. (Note you don't have to send the full amount that is in your Gift Voucher Account.) A short message which will apear in the email. Please ensure that you have entered all of the information correctly, although you will be given the opportunity to change this as much as you want before the email is actually sent.'); break; case '3': define('SUB_HEADING_TITLE','Buying with Gift Vouchers.'); define('SUB_HEADING_TEXT','If you have funds in your Gift Voucher Account, you can use those funds to purchase other items in out store. At the checkout stage, an extra box will appear. Ticking this box will apply those funds in your Gift Voucher Account. Please note, you will still have to select another payment method. If there is enough in your Gift Voucher Account to cover the cost of your purchase then this extra payment will be ignored, otherwise it will be used to pay the balance. If you have more funds in your Gift Voucher Account than the total cost of your purchase the balance will bel left in you Gift Voucher Account for the future.'); break; case '4': define('SUB_HEADING_TITLE','Redeeming Gift Vouchers.'); define('SUB_HEADING_TEXT','If you receive a Gift Voucher by email it will contain details of who sent you the Gift Voucher, along with possibly a short message from them. The Email will also contain the Gift Voucher Number. It is probably a good idea to print out this email for future reference. You can now redeem the Gift Voucher in two ways.<br><p> 1. By clicking on the link containe within the email for this express purpose. This will take you to the store's Redeem Voucher page. you will the be requested to create an account, before the Gift Voucher is validated and placed in your Gift Voucher Account ready for you to spend it on whatever you want.<br><p> 2. At any time you may visit the store, and by following the link in the information box, be taken to the Redeem Voucher page. If you have not already done so, you will be required to login, and if necessary create an account. You will then be asked to enter your Gift Voucher Number, which will then be validated before being added to your Gift Voucher Account for you to spend as you wish.'); break; case '5': define('SUB_HEADING_TITLE','Gift Certificate Warrenty.'); define('SUB_HEADING_TEXT','This gift certificate (?Certificate?) is issued by '.STORE_NAME.'.com, '.STORE_STATE.', (?'.STORE_NAME.'?) in accordance with the following terms and conditions (?Terms?). These Terms constitute the entire agreement and your possession or use of this Certificate constitutes your acceptance of these Terms.<br><p> This Certificate has one (1) year expiration date*. <br><p> This Certificate can be redeemed once by the holder of this Certificate (the ?Holder?) for up to the amount in ?qualifying services? at ?participating products?. To redeem this Certificate, Holder must present and surrender it at checkout. ALL WEB SITE SPECIFIC POLICIES, INCLUDING DEPOSIT, MINIMUM PURCHASE AND CANCELLATION POLICIES APPLY. <br><p> Participating products and qualifying services are subject to change. Before planning a purchase, be sure to check the then current qualifying services and then current participating products at the '.STORE_NAME.'.com Web site. <br><p> If this Certificate is presented for qualifying services with a price of less than amount of the cetificate, this Certificate?s value will not be greater than the price of the qualifying services. However, the redeeming product may at its option issue a credit to the Holder for use on a subsequent purchase at that '.STORE_NAME.', in an amount equal to the difference between the gift certificate and the value of the qualifying services. <br><p> Holder is responsible for all taxes, duties, fees, gratuities and assessments arising out of use of this Certificate. <br><p> '.STORE_NAME.'.com warrants that this Certificate can be redeemed in accordance with the terms and conditions above. '.STORE_NAME.'.com makes no other warranty or representation, and the implied warranties of merchantability and fitness for a particular purpose are expressly excluded. In no event shall site_store_name.com be liable for compensatory, incidental, indirect, special, consequential or exemplary damages. if site_store_name's limited warranty or limitation of liability shall for any reason whatsoever be held unenforceable or inapplicable, holder agrees that site_store_name's liability shall not exceed the sum of one u.s. dollar. Because some states or jurisdictions do not allow the exclusion or limitation of implied warranties or liability, the above limitation may not apply to you.<br><p> All issues and disputes regarding these Terms, or the rights and obligations of the parties, shall be governed by the substantive laws of the SITE_STORE_ZONE without reference to conflicts principles, and shall be determined by binding arbitration under the commercial rules of the American Arbitration Association (?AAA?), at the office of the AAA nearest '.STORE_NAME.'.com?s principal place of business. <br><p> *Except where prohibited by law. '); break; case '6': define('SUB_HEADING_TITLE','When problems occur.'); define('SUB_HEADING_TEXT','For any queries regarding the Gift Voucher System, please contact the store by email at '. STORE_OWNER_EMAIL_ADDRESS . '. Please make sure you give as much information as possible in the email. '); break; default: define('SUB_HEADING_TITLE',''); define('SUB_HEADING_TEXT','Please choose from one of the questions above.'); } ?> Quote
Guest Posted June 7, 2003 Posted June 7, 2003 Any where you have an apostrophy (single quote) you need to escape it. That means don't do this do say don't. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.