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

Pass variable from page to form textbox on another page? 1

Status
Not open for further replies.

lionelbrown

Programmer
Apr 9, 2001
38
US
I'm a VB programmer just starting to learn asp, etc. I'm starting with Frontpage and moving on to Interdev after that, so if I should you can solve my issue using either product, I would greatly appreciate it!

MY QUESTION:
I've created an html page with a hover button that opens my Order.asp (contains an order form) page. I want to click the button and open the order page with a value passed into a textbox on the order form. I've tried using the <url>?<key=value> and then requesting the value on the order page, but I've run into several issues. Frontpage stomps all over my edits to the automatically generated asp form code. Any suggestions on the best way to do this? Where in the order page should I put the code to retrieve the passed value?

My web is being run on IIS, and I'm using Frontpage 2000. My form is using Post.

Thanks in advance for any help you can provide!
 
You need to enter something like
<% getrpt = Request.QueryString(&quot;getrpt&quot;) %> at the top of your asp page. Then from the html, use your button to identify getrpt. On the asp query language, use something like WHERE (database.field) = '%%%getrpt%%%')
That's what I use.

 
Glad to help!
Now all I have to do is figure out what my database crashed when I changed from FP98 to 2000, and I'll be in heaven!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top