Re: Newbie question, Which way is best?

From: Date: Wed, 19 Mar 2008 22:13:17 +0000
Subject: Re: Newbie question, Which way is best?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-271853@lists.php.net to get a copy of this message
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

« previous php.general (#271853) next »