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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

link 1

Status
Not open for further replies.

Nene75

Programmer
Feb 27, 2003
138
US
Hi everyone,

I am using Dreamweaver MX for developing company's web site.

I have a page for Job listing with job descriptions and Job ID. I have a link to submit resume to apply for the particular job.

How do I grab the job ID and Job Title from Job listing page to the submit resume page in a job applied for field?

Any help provided would be appreciated.

Thanks!
 
in ASP?
Code:
<% ' -------- Request entered info from form field ------- 
IF (Request.Form(&quot;form_element&quot;) <> &quot;&quot;) THEN
strSOME = Request.Form(&quot;form_element&quot;)
All the best!

> need more info?
:: don't click HERE ::
 
Thanks for the prompt reply.

Where do I plug in this code?

 
FormPage.asp---------
<form action = &quot;the code page.asp&quot;>
<input &quot;form_element&quot;>
--------------------

the code page.asp-----------

<%@LANGUAGE=&quot;VBSCRIPT&quot; %>
<% ' -------- Request entered info from form field -------
IF (Request.Form(&quot;form_element&quot;) <> &quot;&quot;) THEN
strSOME = Request.Form(&quot;form_element&quot;)
Response.Write(&quot;strSOME&quot;)' test the variable
....
.....
...HTML
-------------------------

so at the top of you &quot;action&quot; page
All the best!

> need more info?
:: don't click HERE ::
 
Thanks for your reply.

Please bear with me I am new to ASP - I have never used it before. I have only developed simple static web pages.

I put the code in you provided and as I click submit button on the form the code page shows up in explorer. What am I doing wrong?

Is form_element is the variable I need to define some where? and what is strSome?

Help me ...

Thanks!
 
hi!
let me post a little correction:
Code:
<% ' -------- Request entered info from form field ------- 
Dim strSOMEVAR ' declare a variable 
IF (Request.Form(&quot;search&quot;) <> &quot;&quot;) THEN ' if the field was not empty then
strSOMEVAR = Request.Form(&quot;search&quot;) ' set some variable = to the content of the filed
Response.Write(&quot; you typed : <strong>&quot;& strSOMEVAR &&quot;</strong><br>&quot;)' write the result-test to see if the variable was passed
ELSE
Response.Write(&quot;<strong>Sorry, but you have not typed anything in the field. Please go back and try again!</strong>&quot;)
END IF
%>
see it at:

all the best!

> need more info?
:: don't click HERE ::
 
Thanks for developing the tutorial asp page. It was a great help on understanding the logic of how to grab the variable to the next page. Though I am not able to accomplish what I am trying to do may be I am not really following well.

-------------------------------------------
1. I have a Open position page: openpos.asp
i.e

Title: Database Administrator (JOB ID: HTP 12-123)
Job Detail: Develope Database in SQL and MS Access.
Etc.
Apply for this Job (link) to Submit resume page.

--------------------------------------------------
I have a Resume Submit Page: resume.asp
i.e.

Job Applied for:
Contact Info:
Education Info:
Attach Resume:

SUBMIT button.

--------------------------------------------------

How do I grab the job title and ID from openpos.asp page to resume.asp page in the field for Job Applied for?

Help me please.

Thanks in advance.
 
is job ID auto-generated and is the &quot;title&quot; manually entered?

> need more info?
:: don't click HERE ::
 

Yes Job Title and ID are both manually entered.

In future I will have the MS Access database generate the New Job position Title and ID but for now I am posting open Positions as a regular text.
 
ok....u should use your &quot;IDs&quot; as a autogenerated and eunique IDs....anyhow
on the openpos.asp
do u have many or one &quot;job&quot; displayed?

[Title].........[JobID]
My Job 66
Tom's Job 68
Web Designer 66

let me know and after this I can update the linke.tutorial above!
ur almost there!
All the best!

> need more info?
:: don't click HERE ::
 
Thanks for helping me solve this ...

The openpos.asp has more than one open positions listed.
I have something like this below in Openpos.asp page:

Senior Computer Systems Analyst* (Ref. # HTP 03-302)

Duties: Provides technical support .... etc.
Qualifications: A Bachelor's degree in Computer Science, et.
Special Requirements: The analyst shall possess knowledge of
etc...

PS: The position closes on 9/30/03

Apply for Position (link to resume.asp)

----------------------------------------------------

Human Factors Specialist-A* (Ref. # HTP 03-300)

Duties: Human Factors professionals needed for etc...
Qualifications: A Master's Degree in Human Factors or equivalent, and ten (10) or more years of experience in the related field, OR a Bachelor's Degree with fifteen (15) or more years of experience in the related field.

PS: The position closes on 9/30/03

(EOE, M/F/D/V) Apply for Position (link to resume.asp)

-------------------------------------------------

postions listing goes on ....

-------------------------------------------------

In Resume.asp I have following:

Job applied for: _____________ (this is where I would like the job title and ID get filled in when applicant clicked on specified job from openpos.asp)

Contact Info:
Education Info:

Attach Resume: _______________ [Browse ]

[SUBMIT] [RESET]

----------------------------------------------------------

Please let me know if you need more info.

Thanks again for helping me on this topic.
 
* is due to lebisol methinks Nene75

Cheech

[Peace][Pipe]
If you don't stand up for something, you'll fall down. Toke it Easy.
Howard Marks.
 
Lebisol:

Thanks for developing the ASP tutorial.
It was a great help!
This is exactly what I am looking for. I am getting it to work though ... In the openpos.asp tutorial - am I retrieving the records from the MS Access Database? When I typed in the <%=(RS.Fields.Item(&quot;JobTitle&quot;).Value)%> Job Title field - I am seeing that code in the web page instead of the actual Job title. What am I doing wrong. By the way I am doing all this testing at my local hard-drive does it matter? or do I need to test this on a server?

Cheech:

Yes Lebisol deserves lots of stars for this.

 
LOL,
thanx CHeech...one of these days I will actually sit down and write some meaningful tutorials.......one of these days I will finish my site....one of these days...I will get a vacation....one of these days I will be doing my work from behind the laptop at the Adriatic coast........so many things in life to do....yet, so little web space ;-)
All the best!

> need more info?
:: don't click HERE ::
 
u do need some server to test it...local or not.
if ur still seeeing the text....then u have to type the code in the code view not as &quot;text&quot;
Code:
<body>
here is your titel: <%=(RS.Fields.Item(&quot;JobTitle&quot;).Value)%> 
</body>
or by assigning the variable
----------------------
Dim strSOMEVAR
strSOMEVAR =<%=(RS.Fields.Item(&quot;JobTitle&quot;).Value)%> ' set some variable = to the content of the filed
Response.Write(&quot; your title is : <strong>&quot;& strSOMEVAR &&quot;</strong><br>&quot;)'
-------------------------

All the best!

> need more info?
:: don't click HERE ::
 
lebisol:

I have the code in the code window. But when I go to preview in the Internet explorer it shows {ResumeDB.JobTitle} instead of the Job Title from the Access Database. What am I doing wrong?

Help me please ...

Thanks in advance ...
 
PART 2 on the Request.asp page
1. You would create a RecordSet and FILTER IT by an unique URL parameter (JobID) that was passed.

JUST typeing it won't do it (although u did it right).....U need to create a recordset and then u can simply drag & drop the field JobTitle from the Application Window/Tab....
All the best!

> need more info?
:: don't click HERE ::
 
Thanks a lot lebisol:

Yes I didn't set the filter before. I have to now test it on a server.

You have been a great help on this topic. You have provided a thorough explanation with sample tutorials - which was a big help.

Thanks again for all your help!
 
hey Nene75!
great, I am glad it worked out for you!keep up the good work!
All the best!

> need more info?
:: don't click HERE ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top