Link to home
Start Free TrialLog in
Avatar of Jim Schwetz
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:
response.write "<td><input type='submit' name='postData' value='" & rsObjPlumDetail.Fields(1) & "'></input></td> "

Open in new window


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

Open in new window

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
Avatar of HainKurt
HainKurt
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jim Schwetz
Jim Schwetz

ASKER

Thanks a lot, I never thought about adding data to the url like that.
Yes, it was only the basic lines. This works great, I spent hours trying to figure this out.