Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jun 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help with password box.

    So firstly, I am a beginner, actually I need HTML coding just for once and I terribly need help.
    So.. I need a password box or some kind of box, where other people can write the needed word. And this has to lead them to another webpage.. And it would be nice, if it wouldn't be visible in source.. Is that even possible?
    If someone would be that kind and help me?

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Quote Originally Posted by Eleri View Post
    So firstly, I am a beginner, actually I need HTML coding just for once and I terribly need help.
    So.. I need a password box or some kind of box, where other people can write the needed word. And this has to lead them to another webpage.. And it would be nice, if it wouldn't be visible in source.. Is that even possible?
    If someone would be that kind and help me?
    Well you can do something like this:

    Code:
    <form action="someActionPage.html" method="get">
    Password:
    <input type="password">
    using the input type of password which will display as "******". But you need to have an action page to pass the form value and process it. Usually a database would be needed for this. And of course html alone wont do this. You'd need a server side language like php, coldfusion, asp or such.
    Teed

  • #3
    New Coder
    Join Date
    Sep 2010
    Location
    The Twilight Zone
    Posts
    86
    Thanks
    17
    Thanked 2 Times in 2 Posts
    As teedoff pointed out, you would need an action page to process the input. You would need to be familiar with php and databases if you want to do something with the password.

    Here's the actual html form for a login name, password. Teedoffs is missing a submit button as well as an identifier.

    Code:
    <form action="someActionPage.html" method="get">
         <label for="user">User name:<input type="text" name="username" /></label>
         <label for="password">Password:<input type="password" name="password"/></label>
    
         <input type="submit" name="submit" value="Log in"/>
    </form>

  • #4
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Quote Originally Posted by Ahlahn View Post
    As teedoff pointed out, you would need an action page to process the input. You would need to be familiar with php and databases if you want to do something with the password.

    Here's the actual html form for a login name, password. Teedoffs is missing a submit button as well as an identifier.

    Code:
    <form action="someActionPage.html" method="get">
         <label for="user">User name:<input type="text" name="username" /></label>
         <label for="password">Password:<input type="password" name="password"/></label>
    
         <input type="submit" name="submit" value="Log in"/>
    </form>

    Well I presumed since the OP didn't know a thing about input types(password) or action pages to process server side form values, I was giving him a basic starting point. I prefer to let ppl learn at least a little on their own and not give them ALL the code.
    Teed

  • #5
    New to the CF scene
    Join Date
    Jun 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Her, actually.

    But thank you for everything. I guess I'm not using this then. I don't need it for login, I just have to do one orienteering game online and I was thinking about doing one task this way, but it's getting too difficult, I guess.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •