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!

Passing a form variable - what am I doing wrong?

Status
Not open for further replies.

mtarby

Programmer
Feb 19, 2003
89
US
I'm trying to pass a form variable from one page (a current job opening page) to another (an online application)

Here's what I'm using on the job description page:

Code:
<form name="apply" method="post" action="/human_resources/online_application/apply.asp">
<input type="hidden" name="Employment_ID" value="<%=(employment_op.Fields.Item("Employment_ID").Value)%>">
<input type="submit" name="Submit" value="Apply Online">
</form>

I want to include this Employment_ID number on the application form on the next page. Neither of the two things I've tried are working:

Code:
<%=Request.Form(Employment_ID) %>
Returns a Request object error 'ASP 0102 : 80004005'

Code:
<%
dim positionid
positionid= session("Employment_ID")
%>
Then 
<%=positionid %>
Returns nothing at all.

I know I'm missing something very basic - can someone give me a hand.

Thanks in advance!

Michelle
 
you are missing the quotes
Code:
<%=Request.Form("Employment_ID")%>

Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Thanks Tony for the quick reply - sorry for overlooking the obvious.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top