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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Access and FrontPage 2002 help with asp

Status
Not open for further replies.
Mar 19, 2002
18
US
Hi - I am building a simple "log-in" page for a web site. The first page that a user comes to when they enter the domain name is a single page built in MS FrontPage 2002 asking the user to log-in. (It also gives the user the opportunity to sign up for the first time).

The user information is stored in a MS Access 2002 database. After to the user logs in, it takes the user to the main page of the web site which is a frames pages with a header (top frame) and a main page (bottom).

What I am wanting to do is as follows: I have used the database wizard to create all pages, etc. The database works fine but I am wanting to place a "welcome" messsage for that particular user in the header (top) frame of this main page.

When the user enters user information from the first page, I have it set up as a "database results" region only I have split the actual fill in form and the actual results to the second (main page).

In the area (fill in) boxes where the user inputs user id and password, this is set up as a form and in the form propoerties, it is set to &quot;POST&quot; to the (name of) second page. But my question is, how do I specify to &quot;POST&quot; to the second page, TOP FRAME in the forms properties? i.e. the first page where the user logs in is main.asp. This is a single page (no frames). If the criteria the user enters as log in information is correct, I want the user to be taken to index.asp (a frames pages with a header and bottom section). In the header, I have a welcome message that reads, &quot;Welcome, <Users First Name>!

I hope this makes sense. If not, please do not hesitate to let me know.

Thanks,
David
 
Hey David,

What It sounds like you're saying is that you want to submit your form to the first page and check if the Login is correct and if so then submit the form to the second page. That isn't really a good idea. I think you could manage it with javascript and some crazyness but what you should do is submit your form to verify the login, then set the users name or whatever information you want to use in your welcome message to Session variables.

like this:

Session(&quot;UserName&quot;) = Request.Form(&quot;UserName&quot;)

Or with URL variables

like this:

Response.Redirect(&quot;welcome.asp?User=&quot; & Request.Form(&quot;UserName&quot;) )

I hope I understood your question :) and I hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top