Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting session variable

Status
Not open for further replies.

mtarby

Programmer
Feb 19, 2003
89
US
This isn't my day - I've got a two part application form. Once the user completes part 1, it inserts into a database table where I've got an auto-number applicant_id field.

My question is this - I want the applicant_id to carry over to the next page and insert into the next database table. This is what I've tried:

Code:
<%
dim applicant_id
applicant_id = session("applicant_id")
%>

And to insert, I'm using this as a hidden field in my form:
Code:
 <input type="hidden" name="applicant_id" value="<%=applicant_id%>">

That unfortunately inserts just a 0 and not the actual applicant_id number.

Any suggestions as to what I'm doing wrong?

Thanks in advance.

Michelle
 
Your question is about "setting session variable" but you haven't provided us with your code that does it. You've supplied code that pulls the value for the session variable, and it all seems to be kosher. Try posting your code where the value is set and maybe that'll help us get somewhere.

-kaht

banghead.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top