PDA

View Full Version : Passing data between two ASP pages



kris.c
15 Apr 2007, 06:43 AM
Hi,
I am trying to design an online auctioning site.
This is what i have as of now:
1) one HTML front end to accept the product number
2) an asp file " material" obtains the product number from the html file and displays the appropriate info from the database and asks the user to enter the bidding price
3) another asp file "bidding" requires the product number the user has entered in the first page and the bidding price the user has entered in the second page

The objective is not to ask the user to enter the product number again in the "material" form

This is what I had tried :
In the asp file "material" the product number is stored in a variable "pnum"

so, while invoking the "bidding file" , i thought of something like this :



<form action="http://localhost/MyWeb/product/templates/bidding.asp" method="get">

&nbsp;&nbsp;&nbsp; <input type="hidden" name="pnum" value="num"><br>

<p style='color:green' size='10'> Enter the bidding price &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="hidden" name="price"><br>
<input type="submit" name="action" value="save">



But, i am not able to get it to work.
Any ideas?

Thanks,
kris

yhgtbfk
22 Apr 2007, 11:05 PM
But, i am not able to get it to work.
Any ideas?

Thanks,
kris

You need to get the value from the page and then store it in the textbox.


myPNum = Request.QueryString("num")

<input type="hidden" name="pnum" value="<%=myPNum%>">