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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Very newbish question about form capture.

    Let me open by saying I do not have any formal experience with coding at all, so please excuse my total lack of knowledge here.

    I am playing around with a website trying to learn how to do things. I have some basics down but I want to be able to have a username and password field that will capture its contents when the submit button is clicked and store them in a database so I can manually create accounts for the requested users. Could someone help me with some html that would show something like this...

    Requested username
    (text box)
    Requested password
    (text box)
    Submit(button that captures the content from both text boxes, and stores or emails them to me, then redirects to a confirmation page)

    Any help is much appreciated. Security is not an issue as this is just a page for family members, no cc info of personal stuff will be transferred so i do not need to worry about encryption or what not.
    Last edited by gqdk2k5; 04-11-2011 at 05:38 PM.

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,332
    Thanks
    5
    Thanked 363 Times in 360 Posts
    You're gonna need to use some server-side language and SQL to insert to your database. Php, coldfusion, asp.net or some other server side will work.

    But, the html you would use would be a form:

    Code:
    <form action="myActionPage.html" method="post">
    <input type="text"  id="username" size="35" />
    <input type="password" id="password" size="35" />
    </form>
    or something like that.

    Then, like I said, you would use SQL to take the values of the form inputs, and INSERT into the database.

    If you google php login scripts, there are tons of free ones out there.
    Teed


  •  

    Posting Permissions

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