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/26/07 21:48

Martix wrote:
> On Mar 26, 6:13 pm, "Jonathan N. Little" <lws4...@centralva.net>
> wrote:
>> Martix wrote:
>>> What would I do if I had more then one hyperlink pulling the value
>>> from the same inputbox??
>> Make it easy on you with tree little words: *use a form*

> how can the different hyperlink pull the same value from the same
> form?? If there was only one link then I wouldn't have a problem.
>

No Hyperlinks

<form action="getstuff.asp" method="post">
<div>
<label for="e_num">Employee No:
<input name="e_num" id="e_num" type="text">

<label for="r_id">
<select name="r_id" id="r_id">
<option value="1">Contact info</option>
<option value="2">Qualifications</option>
....
<option value="n">Employment History</option>
<input type="submit" value="Go Fetch!">
</select>

</div>
</form>

Then have "getstuff.asp"
[pseudocode]

Switch "r_id"

case is 1: query dB for "e_num" contact info
case is 2: query dB for "e_num" qualifications info

....

--
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

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