Skip to main content
Participant
April 24, 2008
Answered

login and display username?

  • April 24, 2008
  • 1 reply
  • 455 views
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'
This topic has been closed for replies.
Correct answer godonholiday
THANKS MATE, all sorted now.

1 reply

Inspiring
April 25, 2008
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.

--

Participant
April 25, 2008
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?