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 Coder
    Join Date
    Jan 2012
    Posts
    10
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Help-Great idea but need a code

    i have a great idea about a website where people make a profile and then make a music playlists based on there moods. but i cant find how to make user accounts. i have a code for the sign up and login sheets, but they lead to nothing. I am a a really new beginner at coding, so any help would be very thankful.
    This is the code for the sign up sheets:
    PHP Code:
    <form id='login' action='login.php' method='post' accept-charset='UTF-8'>  

    <
    fieldset >  

    <
    legend>Login</legend>  

    <
    input type='hidden' name='submitted' id='submitted' value='1'/>  

    <
    label for='username' >UserName*:</label>  

    <
    input type='text' name='username' id='username'  maxlength="50" />  

    <
    label for='password' >Password*:</label>  

    <
    input type='password' name='password' id='password' maxlength="50" />  

    <
    input type='submit' name='Submit' value='Submit' />  

    </
    fieldset>  

    </
    form

    AND THIS IS the code for the log in sheet:
    PHP Code:


    <form id='register' action='register.php' method='post'





        
    accept-charset='UTF-8'>





    <
    fieldset >





    <
    legend>Register</legend>





    <
    input type='hidden' name='submitted' id='submitted' value='1'/>





    <
    label for='name' >Your Full Name*: </label>





    <
    input type='text' name='name' id='name' maxlength="50" />





    <
    label for='email' >Email Address*:</label>





    <
    input type='text' name='email' id='email' maxlength="50" />





    <
    label for='username' >UserName*:</label>





    <
    input type='text' name='username' id='username' maxlength="50" />





    <
    label for='password' >Password*:</label>





    <
    input type='password' name='password' id='password' maxlength="50" />





    <
    input type='submit' name='Submit' value='Submit' />





    </
    fieldset>





    </
    form
    Last edited by monkeydo98; 01-06-2012 at 11:35 PM.

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,020
    Thanks
    75
    Thanked 4,323 Times in 4,289 Posts
    Did you notice this?
    Code:
    <form id='login' action='login.php' method='post' accept-charset='UTF-8'>
    All of the actions you are asking about--storing data, etc.--will need to be done in server-side code. That is, using PHP (or ASP or JSP or ...). So that has nothing to do with JavaScript.

    To do what you want, you will need to learn one of those server-side systems (presumably PHP, but that's up to you) as well as how to create a database as well as how to manipulate a database using SQL coding.

    In short, you have two *major* learning experiences ahead of you.

    If you are proficient in programming, maybe 2 to 4 weeks learning. If not, maybe 2 to 4 months, maybe longer.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • Users who have thanked Old Pedant for this post:

    monkeydo98 (01-07-2012)


  •  

    Posting Permissions

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