Reply to Re: Pass the value of a input box through a hyperlink

Your name:

Reply:


Posted by Martix on 03/29/07 21:41

On Mar 29, 6:35 pm, "Jonathan N. Little" <lws4...@centralva.net>
wrote:
> Martix wrote:
> > Jonathan N. Little stated I could use a drop down list box. But I
> > really don't want to do it that way. I really want to use links.
>
> But *that* is what form are for* *Submitting* information. Links are for
> *linking* to other pages.
>
>
>
>
>
>
>
> >> You can use links there, or you could make them submit buttons. The latter
> >> might be technically easier.
>
> > How do I use the links? How do you place the a variable in the code?
>
> >> Then you can encode the employee ID into the URLs for the links; something
> >> like
>
> >> employee.asp?e_num=6&ID=42
>
> >> The code that handles clicking on an employer name needs to retrieve the ID
> >> anyway, and then it should include it into the code that it generates.
>
> > As in the example I just displayed. I just need the the employee
> > number to get passed through.
>
> >> (Note: In HTML, the "&" needs to be encoded as "&amp;".)
>
> > How do I use this information?
>
> > <a href="emp_info.asp?e_num=" &amp document.inputs.Tcc.value>Employee
> > Info </a>
>
> You cannot do this without depending on JavaScript...bad idea! Or using
> a login procedure that create a session where the employee id is stored
> and your pages could not be static html, but some version of
> server-side, like your emp_info.asp. "emp_info.asp" would no get the
> e_num form the query string but from the value stored in the session...
>
> But would you not say that it is easier to eat soup with a spoon and not
> a fork? There is a mechanism for submitting data...it is called a form.
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com- Hide quoted text -
>
> - Show quoted text -

So even if I had a row of buttons instead of link. How would I code it
so that each button links it to a different page? I don't want to use
a list box

[Back to original 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

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