Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Please Help  (Read 11647 times)

0 Members and 1 Guest are viewing this topic.

wowmaniac123

    Topic Starter


    Rookie

    Please Help
    « on: December 17, 2009, 09:07:38 PM »
    I am wondering if anyone knows an html code to help me. I have a website with links on the homepage. I all the links to go to one page. Is there a way of having the website remember which original link you clicked on so that it can lead to the page you want to click on.
    Here an example because its kinda confusing
    I click music. It goes to page "X". It then goes to the music page after clicking continue.
    I click Video. It goes to the same page. It goes to video after pressing continue.
    Does that make sense? one page remembers the link you pressed and uses that knowledge to redirect to the appropriate page.

    kpac

    • Web moderator
    • Moderator


    • Hacker

    • kpac®
    • Thanked: 184
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 7
    Re: Please Help
    « Reply #1 on: December 18, 2009, 04:52:17 AM »
    Quote
    one page remembers the link you pressed and uses that knowledge to redirect to the appropriate page.
    That would be called hyperlinking.

    wowmaniac123

      Topic Starter


      Rookie

      Re: Please Help
      « Reply #2 on: December 18, 2009, 02:09:56 PM »
      No i want one link to be able to go to different pages based on the first link you pressed

      2x3i5x



        Expert
      • Thanked: 134
      • Computer: Specs
      • Experience: Familiar
      • OS: Windows 10
      Re: Please Help
      « Reply #3 on: December 18, 2009, 03:02:22 PM »
      Oh so you want to have only ONE "Continue" link that will take you to the destination you wanted (based on what the first link was)?


      wowmaniac123

        Topic Starter


        Rookie

        Re: Please Help
        « Reply #4 on: December 18, 2009, 03:38:00 PM »
        Exactly

        Geek-9pm


          Mastermind
        • Geek After Dark
        • Thanked: 1026
          • Gekk9pm bnlog
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 10
        Re: Please Help
        « Reply #5 on: December 18, 2009, 04:06:11 PM »
        I don't understand the problem.   :-[

        wowmaniac123

          Topic Starter


          Rookie

          Re: Please Help
          « Reply #6 on: December 18, 2009, 04:07:24 PM »
          Oh so you want to have only ONE "Continue" link that will take you to the destination you wanted (based on what the first link was)?
          exactly what he said

          kpac

          • Web moderator
          • Moderator


          • Hacker

          • kpac®
          • Thanked: 184
            • Yes
            • Yes
            • Yes
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 7
          Re: Please Help
          « Reply #7 on: December 19, 2009, 04:23:40 AM »
          Quote
          Oh so you want to have only ONE "Continue" link that will take you to the destination you wanted (based on what the first link was)?
          Okay then, maybe you can explain it a bit.

          BC_Programmer


            Mastermind
          • Typing is no substitute for thinking.
          • Thanked: 1140
            • Yes
            • Yes
            • BC-Programming.com
          • Certifications: List
          • Computer: Specs
          • Experience: Beginner
          • OS: Windows 11
          Re: Please Help
          « Reply #8 on: December 19, 2009, 09:07:32 AM »
          It's probably like those annoying ad pages some sites have- with the "continue" link that goes to the page whose link you originally clicked.
          I was trying to dereference Null Pointers before it was cool.

          kpac

          • Web moderator
          • Moderator


          • Hacker

          • kpac®
          • Thanked: 184
            • Yes
            • Yes
            • Yes
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 7
          Re: Please Help
          « Reply #9 on: December 19, 2009, 09:16:22 AM »
          Oh, now I get it! Because I know exactly what you are talking about, BC. :P

          I'd imagine a cookie could work.

          wowmaniac123

            Topic Starter


            Rookie

            Re: Please Help
            « Reply #10 on: December 19, 2009, 11:50:23 AM »
            Problem is i dont know how to make a cookie or anything like that

            kpac

            • Web moderator
            • Moderator


            • Hacker

            • kpac®
            • Thanked: 184
              • Yes
              • Yes
              • Yes
            • Certifications: List
            • Computer: Specs
            • Experience: Expert
            • OS: Windows 7
            Re: Please Help
            « Reply #11 on: December 19, 2009, 11:58:10 AM »
            Okay, well how much coding do you know?

            wowmaniac123

              Topic Starter


              Rookie

              Re: Please Help
              « Reply #12 on: December 19, 2009, 02:53:13 PM »
              I have a basic knowledge of html, javascript and batch scripting

              Geek-9pm


                Mastermind
              • Geek After Dark
              • Thanked: 1026
                • Gekk9pm bnlog
              • Certifications: List
              • Computer: Specs
              • Experience: Expert
              • OS: Windows 10
              Re: Please Help
              « Reply #13 on: December 19, 2009, 03:50:09 PM »
              Well, if it were me I would not do it that way.
              But the end result would appear to be what you want.
              It's very easy to get your HTML editor to do some will extra jobs for you. Such as having it can include an HTML file inside of another HTML file. Somehow either the server or the HTML editor resolves this kind of problem. I don't know how it works. And I don't care. It just works.
              I would make just one file and perhaps it could be called continue.HTML and it would be placed somewhere in the file structure where it's not too hard to find. It would be a very generic file that has all the sorts of things that I wanted to tell somebody they have to do before they can continue. If they didn't want to continue they would hit a link and take him back to the homepage or someplace appropriate. If they get the continue button it would go to a relative link.
              Then I would create a folder structure where every page would have its own folder. That way the first page in each folder could just simply be index.html and just opening the folder on the Web server would automatically cause that page to come up any. But just under that folder would be a continue folder. And, you guessed it it would have a sample HTML file that this is included in the continue.HTML file here. Well not actually those words, but there's some kind of code the HTML editor generates to do that and you don't have to make one of those anyway.
              I know that sounds superfluous, but no, that's just the way I would do it.
              Logical? Efficient? Intelligent? Reasonable?
              Hey, don't ask those kind of questions! We are talking about web design!

              wowmaniac123

                Topic Starter


                Rookie

                Re: Please Help
                « Reply #14 on: December 19, 2009, 06:43:12 PM »
                Iv'e Just decided to make a cookie. Iv'e Seen several websites on how to make one. The only problem is i don't know how to make a cookie that is on a link. Do you know how to fix this. I also want the cookie deleted as soon as they reach the target page is there a way to do that?