Forums
This topic is locked
Need advice on ASP statement
Posted 29 Oct 2003 18:43:49
1
has voted
29 Oct 2003 18:43:49 Katherine Williams posted:
Hello, I created an Online Employment Application that uses ASP, JavaScript& SQL Server2k. The applicant can submit their application by pressing a button, and this action goes to a page that emails our Personnel Division.
Once option on the app is for users to attach their resume. I'd like for the email that gets sent to the Personnel Division to either have a link to the user's resume, or simple text saying "No Resume". This is what I came up with so far:
<pre id=code><font face=courier size=2 id=code><%
**//Apply variable to empty Resume field
var strURL = "www.douglas-county.com/Employment/redirectresume.asp?id=";
var strId = Session("MM_recordId"
//if resume field is not <NULL>
if (Session("MM_Resume" != "<NULL>"{
Session("No_Resume" = (strURL + strId);
}
//if resume field is <NULL>
else if (Session("MM_Resume" = "<NULL>"
{
Session("No_Resume" = "No Resume";
}
%></font id=code></pre id=code>
...but for some reason, it's not working properly. I've been testing this on 2 applicants.
Once has a resume, and the other does not. But sometimes the opposite string comes up for either. For example:
Joe Schmo has a resume on his application. When he clicks the "Submit New Application" button, which starts this ASP statement, the Personnel Dept. receives an email that says "No Resume".
But Judy Schmo did not attach a resume to her application. When she submits it though, the email gives a link from the ASP statement that says that she does have a resume.
I'm confused on why this works sometimes, and not others. Is there a way to abandon an individual Session Variable? I think that's where the problem may lie. Any and all suggestions would be great. Thanks.
KWilliams