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

login and display username?

Explorer ,
Apr 24, 2008 Apr 24, 2008

Copy link to clipboard

Copied

i have created a login page (php/mysql) with username and password boxes. when the form is submitted the mainpage loads up.

i want the main page to be specific to that user, so i want their name to appear in the first line. eg.. Welcome back 'David'

I read a tutorial in the past that tought me to send the users id in the URL and then create a record set on the mainpage that was filtered by the URL parameter.

I have forgotten how to do this and the tutorial is no longer available on Adobe's site.

can anyone tell me how to do this? Thanks in advance,

Gavin
ps. the original tutorial was called something like 'how to build a blog in dreamweaver with php and sql'
TOPICS
Server side applications

Views

420
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

correct answers 1 Correct answer

Explorer , Apr 26, 2008 Apr 26, 2008
THANKS MATE, all sorted now.

Votes

Translate
LEGEND ,
Apr 25, 2008 Apr 25, 2008

Copy link to clipboard

Copied

You need to do some research on session variables. When you log people
in there name is jplaced in a session variable and then you can display
it on each and every page. The tutorial should have discussed these
session variables.

--

Votes

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
Explorer ,
Apr 25, 2008 Apr 25, 2008

Copy link to clipboard

Copied

Thanks Philo, yeah the tutorial did talk about session variables, but i cant seem to find the tutorial online anymore. i seem to remember something about starting a session and the picking it up on the loaded page? i also seem to remember that i did most of it with dreamweaver and did not have to hand code much?

Votes

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
LEGEND ,
Apr 26, 2008 Apr 26, 2008

Copy link to clipboard

Copied

gOOGLE SOMTHING LIKE "session variable : php ; DREAMWEAVER : TUTORIAL"
and you will find a number of tutorials


After you create you login page look into user authentication :
restrict user access to page. The session vars are opened at the top
of the page then all you have to do is display the session var.

Votes

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
Explorer ,
Apr 26, 2008 Apr 26, 2008

Copy link to clipboard

Copied

LATEST
THANKS MATE, all sorted now.

Votes

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