cam_oai Posted February 9, 2005 Share Posted February 9, 2005 i did a FAQ in shipping page and try to add a anchor links, so ppl who click on the "1.How do i login" it will goes to the link down under . BUT the problem is when ppl click it, will will reload the index page again. the code looks ok and i did test it in a new php file and everything work ok. how can i make the anchor in that file? My first remake contribution Link to comment Share on other sites More sharing options...
cam_oai Posted February 9, 2005 Author Share Posted February 9, 2005 i guess no 1 have test this LOL My first remake contribution Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2005 Share Posted February 9, 2005 can you post your non-working code? There are certainly many folks here who have added links to pages, but be patient - - there's no guarantee that someone will reply in less than 1 hour. -jared Link to comment Share on other sites More sharing options...
cam_oai Posted February 9, 2005 Author Share Posted February 9, 2005 ok, here was my step by step. 1. i copied the shipping.php file and rename to faq.php 2. i add the code : ----------------------------------------- <table width="100%" border="0" cellspacing="3" cellpadding="3"> <tr> <td class="main"><ul> <li><strong><a name="top">up</a>Ordering</strong> <ul> <li><a href="#Ord1">Can I order products by phone, fax, email?</a></li> <li>I didn't receive an order confirmation, why ?</li> <li>I want to know my order status, where can i find it?</li> </ul> </li> <br> <li>Payment <ul> <li>What kind payment methods can I choose in Unique-handcrafts.com ?</li> <li>Are the products display price included tax ?</li> </ul> </li> </ul> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <a name="Ord1"></a>Can I order products by phone, fax, email?<br> We are not accept any kind of ordering from email, phone or fax at this moment. All customers must sign up an account in Unique-handcrafts.com and place your orders. [<a href="#top">up</a>]</td> </tr> </table> ---------------------------------------------- now when customer click link nr1 it should jump the anchor 1 right? but instead they reload the index.php. i tested this code in an empty php file and is works 100%. cheers My first remake contribution Link to comment Share on other sites More sharing options...
cam_oai Posted February 10, 2005 Author Share Posted February 10, 2005 seem to me this will not work. i can see http://www.itchi-tech.com/privacy.php and the "back to top" is not anchor. My first remake contribution Link to comment Share on other sites More sharing options...
Jan Zonjee Posted February 10, 2005 Share Posted February 10, 2005 Can you try: <a href="<?php echo tep_href_link('faq.php'); ?>#Ord1">Can I order products by phone, fax, email?</a> IMHO you need the tep_href_link function to not loose the osC session id when it is (still?) in the url. Link to comment Share on other sites More sharing options...
cam_oai Posted February 10, 2005 Author Share Posted February 10, 2005 ok, i will try it. thanks. it just a simple but annoying that didn't work My first remake contribution Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.