Adding Form?

R

Rolf Rosenquist

I have an ASP page with a table that fills with records from a loop. Every
row gets a link to another ASP page with data from the row. The link is
written as <a href=newpage.asp?value1=xx&value2=yy .... and so on.

Now I try to let the user specify a number that should be sent to the other
page. But I do not want to clutter up every row with each an input field,
so I thought instead I would place it above all the data rows. When the user
clicks on the link, I want to include the input field to the querysting. The
problem here is that I cannot figure out how to refer to the name of the
input field.

Any ideas?
/ Rolf
 
M

Mike Brind

Rolf Rosenquist said:
I have an ASP page with a table that fills with records from a loop. Every
row gets a link to another ASP page with data from the row. The link is
written as <a href=newpage.asp?value1=xx&value2=yy .... and so on.

Now I try to let the user specify a number that should be sent to the
other
page. But I do not want to clutter up every row with each an input field,
so I thought instead I would place it above all the data rows. When the
user
clicks on the link, I want to include the input field to the querysting.
The
problem here is that I cannot figure out how to refer to the name of the
input field.

Any ideas?

Instead of writing <a href> links for each row, you should try creating
<input type="submit"> elements, giving them the same value as your link.
Make the whole page a form, so when one of the submit buttons is clicked,
you can get its value, and also the value of the input field.
 

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

Members online

No members online now.

Forum statistics

Threads
474,137
Messages
2,570,802
Members
47,349
Latest member
eixataze

Latest Threads

Top