I want to post some value through a href. However, I do not like to use a link like index.php?id=value
. Is there any other method?
I want to post test1
and test2
.
<div id="div1">
<li><a href="index.php">test1</a></li>
<li><a href="index.php">test2</a></li>
</div>
<div id="div2">this is a <? $_POST["name"]; ?>, just a test.</div>