navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Using session variables on new forms

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Using session variables on new forms
Page: [1]
 
cahigg

 

Posts: 6
From: None
Status: offline

 
Using session variables on new forms - 7/11/2001 13:01:00   
I'm using spooky login and would like to be able to capture the username on other forms to be written to a database. I'm setting up a comments form, survey, and forum that would save the username from the login to each submission. I would also like to setup a template in FrontPage 2000 for new forms. I tried using a hidden field as follows:
<input type=hidden name="username" value=<% Session("UserName")%>>
I don't get an error, but the username field remains blank.
I'm new to vbscript and frontpage so I'm hoping this can be done in frontpage so that my client can create new forms (along with the databases) as needed. Any help is greatly appreciated.

Thanks,
Chris

TimC

 

Posts: 199
From: Greenville SC (& or) Monterrey Mexico
Status: offline

 
RE: Using session variables on new forms - 7/11/2001 22:57:00   
Try this

[Quotes around the value parameter]

<input type="hidden" name="userName"
value="<%=Session("Username")%>">


Oh -- ok, I new this one cause "Sir Spooky" answered the same question for me a couple months ago [grin]


(in reply to cahigg)
Spooky

 

Posts: 26603
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Using session variables on new forms - 7/12/2001 20:18:00   
The "=" part is the important bit as it "writes" the value of the variable.\

<%=Session....

Or

<%Response.Write Session.....

------------------
§þððk¥
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!
VP-ASP Shopping cart


(in reply to cahigg)
cahigg

 

Posts: 6
From: None
Status: offline

 
RE: Using session variables on new forms - 7/12/2001 20:25:00   
Mucho gracias! That did the trick. I had a feeling it would be syntax. Just want to add a big thumbs up for Spooky and his login script!

Thanks again,
Chris


(in reply to cahigg)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Using session variables on new forms
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts