Hi all, maybe it was simple to accomplish but i really spent lots of time to code this without any value return...
How can i pass the input text 'term' value assign to onclick event like below?
Code:
<b>Enter Text:</b><br>
<input name='term' type='text' class='input' size='18'>
<input type='button' value='Go' onclick="samepage.php?q=<?php echo $term ?>" />
My form is using post method (some reason i can't use get method), i want to get the textfield value to perform a very simple search query on similar page...
Please help and thanks!!!!