...

View Full Version : Help-Great idea but need a code



monkeydo98
01-06-2012, 11:32 PM
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:

<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:




<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>

Old Pedant
01-07-2012, 12:02 AM
Did you notice this?


<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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum