CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Tracking who referred a user to a site

Print topic Send  topic

Author Message
DJOldenbrg
Posted: 04/16/2002, 7:39 PM

Okay -- Creating a site, that wants to know who referred a customer to the site, and therefore pay a commission to the reseller.

For example, if I was reseller XYZ, I may have a link on my website to direct people to buy/order a pizza online (hypathetically). I would have that link go to a site url of www.getyourpizza.com/track.asp?reseller=xyz

I've got that page working -- where I have reseller being loaded into a field. Now, I want to push that field to a session variable.

I use a before show event with the following:

set_session("PROMO",fldreseller)

And it gives me an error that says I can use parenthisis when calling a sub.

Any ideas?

Nicole
Posted: 04/17/2002, 12:45 AM

Hello,
first, you do not need to put the code into before show event. Its code is executed in a loop as many times as many records are to be displayed on the form (for Grid forms). My advice is to place the code into Page Open event or Form Open event.
As I see you use ASP, in this case code syntax is incorrect. Try this one:
if GetParam("reseller") <> "" then
Session("PROMO") = GetParam("reseller")
end if
DJOldenburg
Posted: 04/17/2002, 6:08 AM

Nicole... so, if I wanted to set session promo to a fld variable I would use

session("PROMO")=fldpromp?

Nicole
Posted: 04/17/2002, 6:58 AM

Hello,
If you want to assign session var value to field value use:
fldfield_name = Session("session_var_name")
In Before Show event

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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