Current location: Hot Scripts Forums » Programming Languages » PHP » php passing value

php passing value

 
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-07-09, 05:26 AM
conmen80 conmen80 is offline
Newbie Coder
 
Join Date: May 2009
Posts: 16
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!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 11:17 AM
how to use onclick in php coolcoder HTML/XHTML/XML 2 05-31-06 01:40 PM
Help with php value passing david510 PHP 15 04-05-06 12:14 PM
Passing a PHP variable in Javascript??? todayscoffee JavaScript 2 01-08-05 10:45 AM
Passing a PHP variable in Javascript??? todayscoffee PHP 2 01-04-05 02:56 PM


All times are GMT -5. The time now is 10:35 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.