Re: Newbie question, Which way is best?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jason,

Hope this helps -
my 'display_products.php' script
 ----------
<form method='post' action='display_products.php'>
...
<input type='hidden' name= 'query' value=$query>
<input type='submit' Value='Go'></td>
...
// pagination routine
conditional code...
}else{
   echo("<a href=\"display_products.php?page=$i\"><img src=$st border=\"0\" 
 ></a> ");
   }
-----------

So calling the script via the form works i.e it passes the neccessary 
variables to constrct the sql query for the next call. If the user clicks 
one of the pagination links, that calls itself, all that is passed is the 
page=$i variable. I need to include the 'SELECT * FROM...' query either as a 
string or an array of seperate values for the changed query.

So, as I see it, the pagination links won't POST the form variables. How do 
I pass the 'SELECT * FROM mytable WHERE selection=option LIMIT start, range' 
query
to the called script?

George

 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux