Receiving hyperlink parameters

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top