Jump to content

User Form || Save Data || User Permissions HELP!


Recommended Posts

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 by Melford
added the css to make it a bit easier on the eyes
Link to post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...