How can I transfer data from a hidden text box to another page via the post method. Here is my code:
Page1.asp
VB Code:
<html> <head> <title>Page1.asp</title> <h1>Page1.asp</h1> </head> <body> <table> <form action = "Page2.asp" Method = "Post"> <tr> <td>Mark</td> <td><Input type = "Submit" Name "LookupBut" Value = "Request Info"</td> <td><Input type = "hidden" Name "Lookup" Value = "Mark"</td> </tr> <tr> <td>Joe</td> <td><Input type = "Submit" Name "LookupBut" Value = "Request Info"</td> <td><Input type = "hidden" Name "Lookup" Value = "Joe"</td> </tr> <tr> <td>Peter</td> <td><Input type = "Submit" Name "LookupBut" Value = "Request Info"</td> <td><Input type = "hidden" Name "Lookup" Value = "Peter"</td> </tr> </form> </table> </body> </html>
Page2.asp
VB Code:
<html> <head> <title>Page2.asp</title> <h1>Page2.asp</h1> </head> <body> <% strName = Request.Form("Lookup") %> You selected <%= strName %> 's Name </body> </html>
When I click on the button adjecent to Peter's Name I want to transfer the value of the hidden textbox to Page2.asp.
I have searched the forum and I couldn't figure out how to accomplish this. Any ideas
Thanks,




Reply With Quote