CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 login page

Print topic Send  topic

Author Message
Rich
Posted: 02/28/2002, 7:32 PM

ok... hmm how do i explain this. lets talk ASP.
on a login page say I am coming from a table with these fields

[key][user_name][password][security][cust_code]

So, when they login instead of redirecting them via the security field which is somewhere on this site I want to limit the data that they can search for so a hidden field [cust_code] would be in any of the following forms say I have this table for my search and grid.

[cust_code][in_date][unit_number][cd][size][type]

my search would be [unit_number] <----SEARCH and goto grid

my grid would be
[in_date][unit_number][cd][size][type] *note no [cust_code] which is hidden

Im sure this isnt that hard but i cant get it to work. :) Im new.... but im learning...lol

My next question.... anyone know any good ways to get say the data from above or all for that cust_code on a table to upload to a remote user :)]

Thanks for any help or a point to the right direction.
Rich
richn@xgraphics.com

Nicole
Posted: 03/01/2002, 2:14 AM

Rich,
you should create default WHERE clause for result Grid form. Note, to be able to access grid page user should be already logged in, i.e. page security level should be higher than "0". Sample code:

//get the value of unit_number field for logged in user
u_number = dLookUp("user_table", "unit_number", "cust_code=" & ToSQL(Session("UserID"), "Number"))
//build WHERE caluse
if sWhere = "" then
sWhere = "WHERE unit_number =" & ToSQL(u_number, "Number")
else
sWhere = sWhere & " and unit_number =" & ToSQL(u_number, "Number")
end if
Rich
Posted: 03/01/2002, 3:00 PM

thanks Nicole, Ill try it later.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.