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 Martix on 03/26/07 21:04

On Mar 26, 5:57 pm, "BootNic" <boot...@bounce.earthlink.net> wrote:
> > Martix <ig.mar...@gmail.com> wrote:
> >news: 1174941029.981506.277__BEGIN_MASK_n#9g02mG7!__...__END_MASK_i?a63jfAD$z__@l75g2000hse.googlegroups.com
> > On Mar 26, 4:39 pm, "BootNic" <boot...@bounce.earthlink.net> wrote:
> >>> Martix <ig.mar...@gmail.com> wrote:
> >>> news:
> >>> 1174936716.054843.57...__END_MASK_i?a63jfAD$__BEGIN_MASK_n#9g02mG7!__...@y66g2000hsf.googlegroups.com
> >>> Hello
>
> >>> I would like to pass the value of a inputbox through a hyperlink. I
> >>> know this can be done with a single valuelike:
>
> >>> <a href="employee.asp?e_num=6">Market Info </a>
> [snip]
>
> > What would I do if I had more then one hyperlink pulling the value
> > from the same inputbox??
>
> Provide a better example of what you are trying to achive. At the
> moment I can't see why you would want to spread the same action all
> over a page.
>
> If you only have one input, why would you need more then
> one place to submit the info?
>
> At any rate, if you wish to depend on Javascript .
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html>
> <head>
> <title></title>
> <meta http-equiv="content-type" content="text/html; charset=utf-8">
> </head>
> <body>
> <form action="employee.asp">
> <div>
> <input id="bob" name="e_num">
> </div>
> </form>
> <a href="JavascriptRequired.asp" onclick="this.href='employee.asp?'+
> document.getElementById('bob').value;return true;">
> Market Info
> </a>
> </body>
> </html>
>
> --
> BootNic Monday, March 26, 2007 4:56 PM
>
> "My God! The thought of that evil man, loose in London--with money,
> from God only knows what source--fomenting riot and rebellion during
> a public emergency--and in control of an Engine-driven press! It's
> nightmarish!"
> *Gibson-Sterling*- Hide quoted text -
>
> - Show quoted text -

As an example:

You input an employee id and his name comes up in the top frame. In
the same frame there's a row of hyperlinks. Contact info, employment
history, Qualifications, etc

When the links are clicked a new window comes up in the bottom frame.
The employee ID would need to be passed for each of the links in order
for the asp page to be able to bring up the right information.

If there's a better way of doing it. Please let me know

 

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

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