CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Passing user var in Regform after reg

Print topic Send  topic

Author Message
Rick B
Posted: 03/10/2002, 9:20 PM

I am tryin to pass the the new users information to the the RegistrationVeiw.asp in the RegForm example. I have placed Session var in registration.asp under after insert to pass it on, but RegistrationVeiw.asp is coming up blank. I am getting logged in, If I go to the Default page it will show as being logged in under the new user. Here is what I have, can anybody help.

Session("UserID") = CStr(DLookUp("users", "user_id", "user_login =" & ToSQL(flduser_login, "Text")))
Session("user_id") = CStr(DLookUp("users", "user_id", "user_login =" & ToSQL(flduser_id, "Text")))
Session("UserRights") = 1


after registration this is the path that I am getting.

http://www.mydomain.com/reg/RegistrationView.asp?user_id=&UserID=

Alex Alexapolsky
Posted: 03/11/2002, 2:14 AM

I've used your code and it DOES work.
The only suspicious thing is those ?user_id=&UserID= params
in URL . They are absent in mine as they are session var , that
should be invisible in URL.
AudiTT @ Mci
Posted: 03/11/2002, 7:35 AM

I will try to help..

On your form properties where you want to pass the id, go to the input tab on form properties. Select UserID and it should be a set to session, and a number. This will grab the User ID, and pass it to you RegistrationView.asp?user_id=&UserID=.

You can also use a statement like this.

s_UserID = session("UserID")

This will eliminate you passing the userid in the URL. Thats a bad idea (passing in the URL).

Put this in the before show statement of the for, and I think this will pickup your record. I think this mimics a search field. make sure you have the s_UserID defined, or you will get a VB error.

Oh, and this is for ASP.

Bryan
Rick B
Posted: 03/11/2002, 4:38 PM

Thank you for you help

but I am still not getting this to work. I have add the s_UserID = session("UserID") to the registrationview.asp but when I go from the registration.asp to registrationview.asp the page comes up with no info but the field names( no user info) If I go into the registration.asp > form properties > input and check to transfer the UserID. I will get the ?user_id=&UserID= in the URl. If I uncheck it then it will not show up in the url. No matter with way I do this it is not working. Just to make sure I am making this clear. My original code I used will show me being logged in with the new user ID if I go to the default page, but I am not going from the registratio.asp to the default page. I am going strait to registrationview.asp after registration.

Thanks you for any more input

Rick
Efren Lugo
Posted: 03/11/2002, 10:25 PM

If u are using JSP maybe u are missing UserID capital leters in U and ID... is case sensitive....

maybe u need to specifie =(String) session.Attribute("UserID");
dava133
Posted: 03/12/2002, 1:02 AM

if u upload ur codecharge file or sent it me ill be willing to have a look, im a beginner too butn pretty sure ive done what ur trying to do! thing is i use my own trial and error method!!
tbl
Posted: 09/24/2002, 5:59 PM

Hi all
I seem to be getting the same problem with passing user var in in RegForm
as Rick
after I go straight to reg page I get a blank form even though I have logged on.
I am using jsp and I have this in my before show event
fldUSERKEY= toHTML((String) session.getAttribute("UserID"));

any help is much appreciated
Thanks
tbl
Posted: 09/24/2002, 6:08 PM

hi
I've solved it !!
It was a case of renaming the variable in the input parameter to match the login variable

   


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.