Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

links within the same page


kurios

Recommended Posts

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

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

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

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

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

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

Archived

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

×
×
  • Create New...