You are here: Re: Pass the value of a input box through a hyperlink « HTML « IT news, forums, messages
Re: Pass the value of a input box through a hyperlink

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация