Receiving hyperlink parameters

R

rifraf

My web page displays database results, from which I would like to click a
data field as a hyerlink and send that data to the next page and insert that
data into a form field.

I have been able to figure out how to create the hyperlink and pass the
parameters to the next page, but I can't seem to figure out how to receive
the parameters and place them as the default value for a specific form field
on the next page!

Please help!
 
S

Stefan B Rusynko

In your ASP code of the receiving page get the passed variable named say "page" as:
PageName = Replace(Request.QueryString("page"), "'", "''")

Then in your form use PageName
<input name="page" value="<%=PageName%>">

See http://www.asp101.com/samples/



| My web page displays database results, from which I would like to click a
| data field as a hyerlink and send that data to the next page and insert that
| data into a form field.
|
| I have been able to figure out how to create the hyperlink and pass the
| parameters to the next page, but I can't seem to figure out how to receive
| the parameters and place them as the default value for a specific form field
| on the next page!
|
| Please help!
 
Top