//first page
<form action = "second_page.php" method = "get">
<input type = "text" name = "search" value = "search">
<input type = "submit" name = "submit" value = "search">

//second page
$keyword = $_GET['search']
then you do the mysql stuff

Derek Nugent <[EMAIL PROTECTED]> wrote:                                  How 
can I pass a form variable from a previous page to a query in a second page?
  
 I'm trying to set up a search box on my website.
  
 Excellent response time on the last php enquirey!
  
 AWESOME
  
  
 
 [Non-text portions of this message have been removed]
 
 
     
                       

                
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2ยข/min or less.

[Non-text portions of this message have been removed]



The php_mysql group is dedicated to learn more about the PHP/MySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php_mysql/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to