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!

Session Variable Problem

Status
Not open for further replies.

mtarby

Programmer
Feb 19, 2003
89
US
I know I'm missing something obvious, but I'm back to having a problem with setting a session variable - I'm guessing its the way I'm setting it, but I'm not sure what I'm doing wrong. Here's what I'm trying to set it:

Code:
<%
set strSQL = applicant.Execute("SELECT applicant_id  FROM dbo.hr_applicant_info")

dim applicant_id
applicant_id = Request("applicant_id")
Session("applicant_id")= applicant_id
%>

And I'm using this to insert it:

Code:
<input type="hidden" name="applicant_id" value="<%=applicant_id%>">

I'm just getting a 0 inserted instead of the number

I know at this point, I've been trying so many combinations that I'm missing something completely obvious, so I'd really appreciate a fresh set of eyes.

Thanks in advance
 
Hi mtarby,

When you want to call the value again, you have to call it like so:

Code:
<input type="hidden" name="applicant_id" value="<%=Session("applicant_id")%>">

Cheers,

G.


Xedia Media Solutions
-----------------------------
Components/Tools/Forums/Software/Web Services
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top