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