Password input box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • codeex
    New Member
    • Mar 2007
    • 24

    Password input box

    I have a password input box and i want to make it so when they type in a password say such as "show" it would go to another page. i want a basic solution and i dont need it encrypted.
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    Assuming this "password box" is part of a form, you simply put the page you want to go to in the "action" value.

    <form action="yourpag e.html">
    <p>
    <input type="password" >

    Comment

    • codeex
      New Member
      • Mar 2007
      • 24

      #3
      ok i did that but now when i type in any password it goes to the web how do i make it so only one password works??

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        That's where programming comes in. You need either client side authentication using javascript or server side authentication with any number of programming languages. Server side, of course, is more secure.

        Comment

        • codeex
          New Member
          • Mar 2007
          • 24

          #5
          how would i do that? or where can i read about it?

          Comment

          • codeex
            New Member
            • Mar 2007
            • 24

            #6
            i think i would want to do it in javascript

            Comment

            • drhowarddrfine
              Recognized Expert Expert
              • Sep 2006
              • 7434

              #7
              Then ask on the javascript board.

              Comment

              • AricC
                Recognized Expert Top Contributor
                • Oct 2006
                • 1885

                #8
                Actually, you probably want to do both server side and client.

                Comment

                • codeex
                  New Member
                  • Mar 2007
                  • 24

                  #9
                  how would i do server side?

                  Comment

                  • AricC
                    Recognized Expert Top Contributor
                    • Oct 2006
                    • 1885

                    #10
                    Originally posted by codeex
                    how would i do server side?
                    What language are you using?

                    Comment

                    • codeex
                      New Member
                      • Mar 2007
                      • 24

                      #11
                      i am using html.



                      this is the page with the password box.
                      Last edited by AricC; Mar 23 '07, 05:17 PM. Reason: Fixed Link

                      Comment

                      • AricC
                        Recognized Expert Top Contributor
                        • Oct 2006
                        • 1885

                        #12
                        Originally posted by codeex
                        i am using html.

                        http://www.signaturepa rty.com/priceps.htm

                        this is the page with the password box.
                        Go look at my post in the javascript section.

                        Comment

                        • AricC
                          Recognized Expert Top Contributor
                          • Oct 2006
                          • 1885

                          #13
                          Originally posted by codeex
                          i am using html.



                          this is the page with the password box.
                          Also, HTML is not a server side scripting language. HTML and Javascript can be seen by the client (anyone who surf's to your page). A server side language is PHP, ASP etc....

                          HTH,
                          Aric

                          Comment

                          • eragon
                            Contributor
                            • Mar 2007
                            • 431

                            #14
                            i got a password script you might like, it is EXTREMELY versitaile (sp?), and i will be more than happy to send it to you. It works like a charm, however, its not encrypted or anything, its just an external *.js file. PM me if you want it. =]

                            Sincerely,

                            Eragon

                            Comment

                            Working...