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!

Ideas on how this is done 3

Status
Not open for further replies.

JrClown

Technical User
Oct 18, 2000
393
US
hello all,
I'm setting up a search page with 3 search field
Name:
Accnt #:
Date:

each option is it's own form with a submit\reset buttons.
What I need to know is:
I'm creating a script page for each field then I want to redirect back to the search page and display the results below the search options on the search page. I hope this is clear.
Any ideas are appreciated it. "The reward of one duty done is the power to fulfill another"
<%
Jr Clown
%>
 
Certainly -- when you redirect, just tack on a querystring to the end of the url -- and read the contents of the querystring to write out the comments --

If the querystring is empty (indicating that it's the first load of the page), then display nothing extra --

I don't know how much information you are wanting to send back, though. If it's alot, then you'd probably want to send some key information about some text file or something that the other file wrote (i.e. the location of it on the server) so that the page could open it up and display the contents.

yes?

:)
Paul Prewett
 
Thanks Paul, I'll try that and post back if problems &quot;The reward of one duty done is the power to fulfill another&quot;
<%
Jr Clown
%>
 
Alternative plan B would be to have the 3 fields in the one form.

On submit, call the same file and depending on which field has a value, do the serach and deposit the results below the fields - doing this, you can also use the field value to pop the search string back in the text box - which is nice and user friendly. Steve Davis
hey.you@hahaha.com.au
 
Are you pretending to know Steve or not? LOL &quot;The reward of one duty done is the power to fulfill another&quot;
<%
Jr Clown
%>
 
not sure whether to be offended or not :->

I am serious for sure.

That would be the way I would try it. Of course, having said that, I might find that it didn't work and try something else, but just thinking about it, I can't see why not it wouldn't work.

The only disadvantage is that it makes the one page a little bulkier, but so what. If you don't write it like spaghetti, it should be easy to keep the code straight. Steve Davis
hey.you@hahaha.com.au
 
My intention was not to offend, was only trying to make a joke after reading your site.

Thanks for your input. &quot;The reward of one duty done is the power to fulfill another&quot;
<%
Jr Clown
%>
 
As always. Thanks guys
I used Paul's advise and it worked just fine.

I have a different questions if I may.
How do calculate times in asp?
I have a starting time and completion time and want to know how long it took to complete the job.
&quot;The reward of one duty done is the power to fulfill another&quot;
<%
Jr Clown
%>
 
Use the DateDiff() function -- Here's an explanation far and above what I could give --


Oh, and if you don't have that site bookmarked, then please do so -- their quick reference guides are the best I've ever found -- and if you can stand to part with $5 (it's well worth it), then you can download their quick reference guide so you have it right there locally.

:)
Paul Prewett
 
Awesome bro, Thanks &quot;The reward of one duty done is the power to fulfill another&quot;
<%
Jr Clown
%>
 
Another alternative is the Microsoft VB SDK. It is free :)

The main problem with it is that it is so bloody hard to find on the Microsoft site.

I have it if you are interested and can make it available on my website for download. Steve Davis
hey.you@hahaha.com.au
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top