cyclopsvs
Aug 31st 2006, 10:51 am
Hello Javascript users,
I'm completly new in web development and can't figure out how i should do the following.
I have a connection with a database and based on the data retrieved from the database the following links could be shown in a browser
<a href='test1'>test1</a><br>
<a href='test2'>test2</a><br>
<a href='test3'>test3</a><br>
Besides these links i have a variable i wanted to pass along as a hidden variable so what i did was i created a header and right after the header i created a form with a hidden variable like
<input type='hidden' name='id' value='100'>
so what i want to do is when someone selects one of the <a href> i want the user to go to the adress specified with the link but i also want to pass along the hidden variable.
i thought that with onclick would be the best option but i can't figure out how i should encode that.
any help or suggestions are appreciated,
thanks in advance for your time,
richard mendes
I'm completly new in web development and can't figure out how i should do the following.
I have a connection with a database and based on the data retrieved from the database the following links could be shown in a browser
<a href='test1'>test1</a><br>
<a href='test2'>test2</a><br>
<a href='test3'>test3</a><br>
Besides these links i have a variable i wanted to pass along as a hidden variable so what i did was i created a header and right after the header i created a form with a hidden variable like
<input type='hidden' name='id' value='100'>
so what i want to do is when someone selects one of the <a href> i want the user to go to the adress specified with the link but i also want to pass along the hidden variable.
i thought that with onclick would be the best option but i can't figure out how i should encode that.
any help or suggestions are appreciated,
thanks in advance for your time,
richard mendes