I have a search page with an input box in my index.php
. The form is using POST method.
<form id="someID" action="result.php" method="post">
<input name="name" id="name" type="text">
<input type="submit" value="Search">
</form>
Now I want to send a string to that input box from result.php
page using a link like this-
<a href="javascript:void(0)">Some Name</a>
I can get the content of this link using JS and can send the name to result page if I use GET method.
Example: http://example.com/result.php?name=value
But I cannot use GET here.
Can I send the content of this link as a string to the result page using POST method? Any ideas?