kurios Posted February 18, 2009 Share Posted February 18, 2009 I'm working on a simple FAQ in shipping.php. I've been trying to create links from my questions at the top of the page, to the answers below them on the same page. using the standard <a href="#Link Name">Text </a> pointing to <a name="Link Name">Text </a> doesnt work. Clicking on the link ju takes me back the welcome page. what should i do? Link to comment Share on other sites More sharing options...
spooks Posted February 18, 2009 Share Posted February 18, 2009 Bad idea. Useing the # within the URL will cause loss of sid if its there, so only use if you include a test for that, or use force cookie use 'on' Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
kurios Posted February 18, 2009 Author Share Posted February 18, 2009 Bad idea. Useing the # within the URL will cause loss of sid if its there, so only use if you include a test for that, or use force cookie use 'on' I'm not sure i follow you but i'm sure you have a point, so how do i create links within the same page then? Link to comment Share on other sites More sharing options...
kurios Posted February 18, 2009 Author Share Posted February 18, 2009 Ok i solved it, you need to add shipping.php to the href like this; <a href="shipping.php#Linkname"> don't ask me why Link to comment Share on other sites More sharing options...
spooks Posted February 18, 2009 Share Posted February 18, 2009 unfortunatly, unless you take the precautions I said, you cant Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
kurios Posted February 18, 2009 Author Share Posted February 18, 2009 unfortunatly, unless you take the precautions I said, you cant excuse a noob but it's working the way i want it now, what do you mean by "loss of sid". Am i breaking something somewherelse? Link to comment Share on other sites More sharing options...
spooks Posted February 18, 2009 Share Posted February 18, 2009 You don't seem to have got my point! To demonstrate, assuming you have force cookie use 'off' Load browser anew, log into your site, check the url has the sid, follow one of the new links, you will be logged out!! Also, in any case all links must use tep_href_link for the same reason Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
kurios Posted February 18, 2009 Author Share Posted February 18, 2009 You don't seem to have got my point! To demonstrate, assuming you have force cookie use 'off' Load browser anew, log into your site, check the url has the sid, follow one of the new links, you will be logged out!! Also, in any case all links must use tep_href_link for the same reason ok thanks, i'll keep that in mind! You seem like a knowledgeable man, do you perhaps have the answer to my other question: http://www.oscommerce.com/forums/index.php?showtopic=328901 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.