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

Send Search Results to another Asp Page

Status
Not open for further replies.

danieljoo

MIS
Oct 9, 2002
43
US
I have a db that I am using to search conference attendees. The users are able to search the db using an asp page, based on a company name, city or company number (using like). From the results that are returned, I would like the users to be able to click on the desired result and open another window containg that companies attendees. Somehow I would need to create a hyperlink that sends a query using the company number, but not sure of the syntax:

a href ="select all from Attendess where CustomerNumber = 'the company that was selected'"
 
Try sending your link to another asp page that runs the query.

Code:
<a href='query.asp?companynumber=&quot; & RS(&quot;companynumber&quot;) & &quot;'> text here </a>&quot;

Where RS(&quot;companynumber') is, insert your company number from your record set

Pass this to a new asp page that runs another query using the request(&quot;companynumber&quot;) in the where statement

Code:
&quot;Select * from Attendees where companynumber = &quot; & request(&quot;companynumber&quot;)

The request(&quot;companynumber&quot;) will insert the variable that was passed in the link.

Why isn't phonetic spelled the way it sounds?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top