Skip to main content
Participant
Sep 27, 2016 9:15 PM UTC
Question

How do I pass a login to the next page?

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

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

kglad
Community Expert
Community Expert
Oct 22, 2016 6:28 PM UTC

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.

Translate