Copy link to clipboard
Copied
I am using dreamweaver to create a fitness challenge site. Essentially, whoever has worked out the most minutes will win. The login page will direct users to the next page where the users can add how many minutes they worked out for that day.
MY PROBLEM ---- After the users login and are directed to the next page, instead of their username being displayed, it shows EVERYONE'S username.
A user could add minutes to any other person if they wanted to, which is a problem.
How would I have a user login, so that only their name appears?
Each User has a specific value connected to the database
Copy link to clipboard
Copied
store your data using variable that exists when the user changes pages.
because your form doesn't exist when you change pages, you can't use the same getElementById/getElementsByClass that you use when the form exists.