Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > Classic ASP

Reply
 
LinkBack Thread Tools
Old July 13th, 2005, 04:11 AM   #1
Reputable Member
 

Join Date: May 2005
Location: Sheffield
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Andy K is on a distinguished road
Assign string values to integer values of a session variable

I am using a session variable to store a reference from an external weblink.

The variable is just a number: 1, 2 or 3

I would like to email this reference using a form I have set up, but instead of just sending 1, 2 or 3 I would like to number to refer to a name.

So I need to assign a name/string to each number. Any ideas of the best way to do this please?
Andy K is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 13th, 2005, 04:29 AM   #2
Reputable Member
 

Join Date: May 2005
Location: Sheffield
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Andy K is on a distinguished road

just worked it out.

I used Select Case quite easy really,

Code:
nlogo = Session ("refer") 

Select Case nlogo 
   Case 0  nameL = ("none")
   Case 1  nameL = ("logo1") 
   Case 2  nameL = ("logo2") 
   Case 3  nameL = ("logo3") 
End Select
Then put this in the email line:

Code:
FullForm= FullForm & "

Estate Agent Lead: " &  (nameL)   & "</p>"
Andy K is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
assign , string , values , integer , session , variable


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Option values AdINo HTML, XHTML and CSS 3 July 6th, 2007 06:09 AM
Option values AdINo JavaScript 2 July 5th, 2007 02:48 PM
Highest Values robukni PHP 6 May 4th, 2007 07:33 AM
Setting Form Values to Previously Entered Values masonbarge PHP 6 October 17th, 2006 01:36 PM
submission of values somsahi JavaScript 1 August 22nd, 2006 06:31 PM


Search Engine Optimization by vBSEO 3.2.0 RC8