Pass Post variables on clicking an hyperlink.

Pass Post variables on clicking an hyperlink.

Hi,

 I am very new to this and I need some help.

I have a situation like this. I need to pass post variables when I click on a hyperlink.

Can any one help me. Thanks a lot..

To be clear I have something like this. <a href="test.php?name=test">Click</a>

If javascript is enabled,

I think I can use "event.preventDefault()" to suppress passing as GET variable.

So now onclick, name should be passed as post variable instead of get.

If javascript is disabled, Then the above should work.