Jim Schwetz
asked on
href instead of using a form
I have a table that gets populated from a database. Using ASP classic.
I am trying to have the user click on one of the rows, and then open a new web page with more data based on what they clicked.
So far I have this:
This is in a Do while not loop. and in a form with an action="url". Tried adding a method='post', but that did not help.
So every line in the table now has the system number looking like a button, or a link.
and here is a bigger picture of the code
at the bottom of the page, I have a separate form that I can just type in the number from the table and that works. but I want to delete this second form.
I am trying to have the user click on one of the rows, and then open a new web page with more data based on what they clicked.
So far I have this:
response.write "<td><input type='submit' name='postData' value='" & rsObjPlumDetail.Fields(1) & "'></input></td> "
This is in a Do while not loop. and in a form with an action="url". Tried adding a method='post', but that did not help.
So every line in the table now has the system number looking like a button, or a link.
and here is a bigger picture of the code
<tbody>
<form action="URL" method="post">
Do while not rsObjPlumDetail.EOF
Response.Write "<TR class='row'>"
response.write "<td><input type='submit' name='postData' value='" & rsObjPlumDetail.Fields(1) & "'></input></td> "
I also tried the <a href> instead of button, with a hidden input after it.at the bottom of the page, I have a separate form that I can just type in the number from the table and that works. but I want to delete this second form.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes, it was only the basic lines. This works great, I spent hours trying to figure this out.