Pass the value of a input box through a hyperlink

M

Martix

I think I finaly figured it out.

I put in a row of inputs with different values but all with the same
name.

In the .asp I did a request.form for the value of the input with the
employee number and the value of the submit button. Because all the
submit buttons have the same name it ends up that it gets the value of
the submit button that was clicked.

I know it's probably not the best way to do it, but it works.

I'd like to thank everybody that put up with me and at least tried to
help me out. I really appreciate it.

Thanks
 
J

Jonathan N. Little

Martix said:
I think I finaly figured it out.

I put in a row of inputs with different values but all with the same
name.

In the .asp I did a request.form for the value of the input with the
employee number and the value of the submit button. Because all the
submit buttons have the same name it ends up that it gets the value of
the submit button that was clicked.

I know it's probably not the best way to do it, but it works.

I'd like to thank everybody that put up with me and at least tried to
help me out. I really appreciate it.

Yes you could use a control array or as in my example different names
for each submit and only the one clicked will send the var. Do not know
ASP, but in PHP you text for the existence of the server var

if( isset($_POST['history']) ){
// means the submit button named 'history' was clicked...
}
 
M

Martix

Until I started this project I knew nothing about ASP or PHP. But
since I started I learnt a lot about ASP, JSCRIPT, AJAX, HTML.

I'm learning as a go. There are probably easier ways to do things then
the way I did but I got it done somehow. It is an intranet site so I
don't expect high usage.
 
J

Jonathan N. Little

Martix said:
Until I started this project I knew nothing about ASP or PHP. But
since I started I learnt a lot about ASP, JSCRIPT, AJAX, HTML.

I'm learning as a go. There are probably easier ways to do things then
the way I did but I got it done somehow. It is an intranet site so I
don't expect high usage.

If you wish not to get seared by the regulars, learn to quote the
relevant bits to which you are replying to in order to some contents to
your remarks for folks who use real newsreaders.
 

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,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top