|
Posted by Jonathan N. Little on 03/29/07 21:35
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 "&".)
>
> How do I use this information?
>
> <a href="emp_info.asp?e_num=" & 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 STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|