Posted by Jonathan N. Little on 03/30/07 20:35
Martix wrote:
> 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...
}
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|