Melford Posted January 15, 2020 Share Posted January 15, 2020 (edited) Hi, I've been working on a website the past few weeks now as a project, I'm currently trying to figure out how to store information saved when filling the Registration form and being able to use said information in the Login form. I've been stuck for days with setting up a database as I'm currently trying to use indexeddb as I'd like to use client-side storage. Any assistance to help me create this would be heavenly as I've started to give up as to be quite honest with you, I'm awful at it and slow at learning I've attached the login.html and register.html files that I'd like to use to store and access said information for user perms, if any information is required please feel free to ask as I'm sure this is beyond vague and I'll get back to you asap. Once again thanks for the assistance to anyone involved! login.html register.html style.css Edited January 15, 2020 by Melford added the css to make it a bit easier on the eyes Link to comment Share on other sites More sharing options...
Ingolme Posted January 15, 2020 Share Posted January 15, 2020 What exactly are you trying to achieve? With a purely client-side database anybody can register and log into your website and set their own permissions. Multiple people will be able to have accounts with the same names and email addresses and if they go to a different device they will have to create the account over again. I can check your files later when I have some more time to see why they are not working as expected. Files running from the desktop usually have more restricted security settings so that may be an issue. Link to comment Share on other sites More sharing options...
Melford Posted January 15, 2020 Author Share Posted January 15, 2020 Essentially the goal is to create a template for a sales website, I'm looking for more the basic side of things as I'm a beginner breaking into the scene of CSS, HTML and Javascript etc so I'd like to have my Login.html and Register.html files both access a client side storage system like indexddb which I have however is tied to the Buy/Sell functions of my site. Naturally you being considerably more wise regarding these things you'd bring up multiple registrations via 1 device however I really am just looking for the bog standard, anyone can make any amount of accounts so long as the information is stored on to a database and accessible via the login.html where they can have their user login. I'm basically making a skeleton of a site to then work on it throughout the year making it more advanced. Link to comment Share on other sites More sharing options...
Melford Posted January 15, 2020 Author Share Posted January 15, 2020 Oh sorry to make it more clear so if you don't want to you don't waste your time, I'm basically asking for assistance in making the database (if I need one) or the php(?) as I've been looking to make one for days but I can't find anything on indexeddb and I think I may be over-complicating things with it which is why I'm seeking help from people with experience and who aren't brain fried from having issues with the same problem. I thought I could use my indexeddb database which I got working for the buy/sell functions on my site however after trying to implement it, it met a catastrophic failure so I went back to my backup and decided maybe that wasn't the right way to approach. Link to comment Share on other sites More sharing options...
Melford Posted January 17, 2020 Author Share Posted January 17, 2020 bump Link to comment Share on other sites More sharing options...
Ingolme Posted January 20, 2020 Share Posted January 20, 2020 I just went through your code, you haven't written any Javascript, so I can't point out where you might be having any mistakes. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now