PC Review


Reply
Thread Tools Rate Thread

How do I use a Formfield value from a previous page, in a database query on another page?

 
 
Chris Plant
Guest
Posts: n/a
 
      11th Jul 2005
Hi, I've followed the instructions on the link below to allow password entry
and verification against a list of users in a database.

http://www.frontpageworld.com/tipsan...ndtricks12.htm

Everything works well. It prompts me to login, but what I want to do next,
is use the username entered on the previous screen, in a database results
query.

something like ....

WHERE [managercode] = "username entered on previous screen"

but I just can't get the syntax correct, or even know if it's possible.

Can anyone help please? Thanks in advance, Chris.


 
Reply With Quote
 
 
 
 
MikeR
Guest
Posts: n/a
 
      12th Jul 2005
Chris -
It'll depend on what you've done so far. What is the action that happens when you click
submit? Does it write to a database, or go to another page? If it goes to another (asp)
page then
SQuery = "WHERE [managercode] = " & <%=Request.Form("Whateveryourtextboxnameis")%>
MikeR

Chris Plant wrote:
> Hi, I've followed the instructions on the link below to allow password entry
> and verification against a list of users in a database.
>
> http://www.frontpageworld.com/tipsan...ndtricks12.htm
>
> Everything works well. It prompts me to login, but what I want to do next,
> is use the username entered on the previous screen, in a database results
> query.
>
> something like ....
>
> WHERE [managercode] = "username entered on previous screen"
>
> but I just can't get the syntax correct, or even know if it's possible.
>
> Can anyone help please? Thanks in advance, Chris.
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Breaking Shaded Headings Leaves Artifact on Previous Page mglmstr Microsoft Word Document Management 3 21st Jan 2009 10:36 AM
word 2003 footer page xofy reset to page 1 with same as previous Cherylann Microsoft Word Document Management 1 5th Mar 2008 03:55 PM
Previous Page Query TARUN Microsoft C# .NET 0 4th Jul 2006 03:41 PM
Re: How do I use a Formfield value in a database query on another page? Stefan B Rusynko Microsoft Frontpage 2 12th Jul 2005 09:55 AM
How do I use a Formfield value in a database query on another page? chrispl Microsoft Frontpage 0 11th Jul 2005 12:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 PM.