• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How do I pass a login to the next page?

New Here ,
Sep 27, 2016 Sep 27, 2016

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 databaseedit minutes.PNG

Views

746

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 22, 2016 Oct 22, 2016

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines