View Single Post
  #1 (permalink)  
Old 07-07-09, 05:26 AM
conmen80 conmen80 is offline
Newbie Coder
 
Join Date: May 2009
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Question php passing value

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!!!!
Reply With Quote