-
Infi_SnypLikes 0Problem Description
So I wanted to create a website that would let a user login. It’s supposed to be super simple. Just a white background with a username input box and a login button. No password.
What language(s) would be best to use?
Can I use my PC for a server for the testing stages?
I would have to create an API so I could talk with the server?
Would it go like
User enters username and presses login and the API check the server if the usename exists and if it does then it goes to his/her page?
Another question that popped into mind – How would I store info like usernames? Would I be able to store them in an exel file and read them from there? Would it be different if i did it over a server or locally on my PC?
Also here is a snippet of code that shows kinda what I want but I want the UserName stored somewhere else and not in the code. It’s HTML and JavaScript. I’nm not to sure about it though as i got it online and just modified it to my liking.
<form> <input type="text" placeholder="Username" id="text1" /><br /> <input type="button" value="Login" onclick="javascript:validate()" /> </form> <script type="text/javascript"> function validate() { if(document.getElementById("text1").value == "workshop") { alert( "validation succeeded" ); } else { alert( "validation failed" ); } } </script>
This is one of my other posts about this topic.
https://forums.coronalabs.com/topic/65320-how-would-i-let-users-login-to-my-app/#entry337731
Thanks for any help!
-
Sonar Systems adminLikes 0
For using a database, you will need a back end language. I recommend PHP as you have C++ experience which will lend well to it.
Here is a course on PHP to help you learn this http://www.sonarlearning.co.uk/coursepage.php?topic=web&course=ext-php
This reply has been verified.
-
Infi_SnypLikes 0
Thanks for the reply! Right now databases are the least of my worries. What I want is when the user presses “login” then the code checks a somewhere if the username is correct and logs them in. So how would i go about checking a txt file or a exel file? How would you recommend I store my usernames?
-
Infi_SnypLikes 0
Bump. Still stuck on the question.
-
Infi_SnypLikes 0
I was taking a look at this tutorial. I was wondering if this was a good way of going about my situation?
http://s0.docspal.com/files/processed/98/10630698-muruiopy/3592029.pdf
-
Sonar Systems adminLikes 0
Have you gone through the tutorial series I sent you.
Login to reply