Simple User Personalisation
page 3 of 5
by . .
Feedback
Average Rating: 
Views (Total / Last 10 Days): 25369/ 28

Personalisation

Personalization

Next, is the personalization page, this is just a form -

Each checkbox is named ind, sto, tod, tec and sci (to represent Index, Stocks, Today, Technology and Science respectively. It submits to a page called 'dopers.asp'. Which is just code -

<%
Dim pers
If Len(Request.QueryString("ind")) Then
pers = "01"
Else
pers = "00"
End If
If Len(Request.QueryString("sto")) Then
pers = pers & "01"
Else
pers = pers & "00"
End If
If Len(Request.QueryString("tod")) Then
pers = pers & "01"
Else
pers = pers & "00"
End If
If Len(Request.QueryString("tec")) Then
pers = pers & "01"
Else
pers = pers & "00"
End If
If Len(Request.QueryString("sci")) Then
pers = pers & "01"
Else
pers = pers & "00"
End If
Session("pers") = pers
Response.Redirect("infostuff.asp")
%>

Which checks each checkbox to see weather it was filled in, if so, it adds '01' to the personalization string and if not it adds '00' to the string. This created the 'pers' string which is then assigned to the Session variable of the same name. The user is then redirected back to the main page (infostuff.asp).


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-26 5:43:14 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search