Checkbox redirection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neogazz
    New Member
    • Apr 2010
    • 55

    #1

    Checkbox redirection

    How would you design a webpage form which contains a "checkbox" that when checked and the 'submit' button is pressed will automatically redirect the user to another webpage??

    If the "checkbox" is not checked and the 'submit' button is pressed, then it will not direct user to another webpage.
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    You can't do anything on the page to do that. It's handled by the server side using redirection and your favorite programming language.

    Comment

    • neogazz
      New Member
      • Apr 2010
      • 55

      #3
      Would you use PHP for this?

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        Any server side language will do.

        Comment

        • neogazz
          New Member
          • Apr 2010
          • 55

          #5
          Many thanks

          Comment

          • drhowarddrfine
            Recognized Expert Expert
            • Sep 2006
            • 7434

            #6
            One thing I did forget is this could be done using javascript on the web page, too.

            Comment

            • neogazz
              New Member
              • Apr 2010
              • 55

              #7
              How would you go about doing this using JavaScript as then the code would run faster?

              Comment

              • drhowarddrfine
                Recognized Expert Expert
                • Sep 2006
                • 7434

                #8
                Need to ask on the javascript board for that.

                Comment

                Working...