Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Variable blank after authentication takes place!!

Status
Not open for further replies.

Braveheart1326

Technical User
Mar 15, 2004
6
GB
Hi

I am new to Dreamweaver 2004 MX and web development so please bear with me. I have an index page (index.htm) that has been split into 3 frames. A login frame (PHP page), A navigation frame (PHP page) and a main text frame (PHP / html page). Within the login frame there is a form asking for username & password. The "login button" has a server behaviour assigned to it of log on user and will authenticate the username and password against a registered users table in a MYSQL database.

If the login is successful, then it should open a login_successful page (PHP) in the main text frame of the site. Part of this page says "welcome <Username", where Username is a form variable. The problem is that this NEVER seems to pass through the username.

If I dont authenticate against the database table and just load the page the Username variable shows ok so it looks like once it has authenticated with the database it is clearing down the username variable.

Has anyone got any ideas what could be causing this to happen as I need to a) authenticate the details and b) have the username variable available as I need to to query the MYSQL database to return specific matches for the username.

Does anyone know why this is happening. All info & guidance appreciated.

Thanks and look forward to resolving this problem once and for all.
 
You will probably find that the username has been assigned to a session variable in which case just display that

[Peace][Pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top