From: "Julien Bonastre" <[EMAIL PROTECTED]>
To: "Bastien Koert" <[EMAIL PROTECTED]>
Sent: Friday, December 23, 2005 11:01 PM
Subject: Re: [PHP-DB] Dynamic Navigation Bar

I would suggest using the GET method..

Unless you have some reason you don't want the data passed via GET..

In which case I suggest just storing all that in a session..

So for example, I wouldn't want to pass a big ugly html-encoded query string via the GET URI, as it would look awful

Instead, set a session variable holding that query and any related details you are also processing [ie user selected sorting of results [ascending/descending] etc, fields to sort by, whatever options you have] and just pass a 'pg' value via get

such as ./search.php?pg=2

or something..

As as alternative to the javascript form POSTing method..

Its up to you, I'm just providing an alternative to using Javascript which as someone else outlined is CLIENT side, hence you are relying on correct operation by the browser for it to work..

I don't like relying on the clients browser, I like relying on my code..


---oOo--- Allowing users to execute CGI scripts in any directory should only be considered if: ... a.. You have no users, and nobody ever visits your server. ... Extracted Quote: Security Tips - Apache HTTP Server ---oOo--- ------oOo---------------oOo------ Julien Bonastre [The_RadiX] The-Spectrum Network CEO ABN: 64 235 749 494 [EMAIL PROTECTED] ------oOo---------------oOo------ ----- Original Message ----- From: "Bastien Koert" <[EMAIL PROTECTED]>
Sent: Friday, December 23, 2005 1:39 AM
Subject: RE: [PHP-DB] Dynamic Navigation Bar



Subject: RE: [PHP-DB] Dynamic Navigation Bar
Date: Thu, 22 Dec 2005 09:38:01 -0600

Thanks for the quick response, Bastien.
I was thinking that using hidden fields may be another way to go. But how
would I assign a value to a form variable via clicking on a link?

>No, you could try keeping that data in sessions or in hidded form >fields
>the page...note that the latter requires that you do a page submit with
>onclick of the link / button

>>Subject: [PHP-DB] Dynamic Navigation Bar
>>Date: Thu, 22 Dec 2005 09:27:33 -0600
>>Results from full-text searches on a documents database are returning
>>sometimes 300-400 hits, so I'm gonna need to implement a dynamic
>>bar. Perhaps this a stupid question, but it seems from a brief >>googling >>that navigation bars - dynamic or not - operate by appending >>variables
>>values to the URL within the <A href="...">link</>, which are then
>>from the $_GET array.  Can someone shed some light on whether this the
>>method used?
>> And, yes, I know that there is a Pear package that does this, but >> I'm
>>inclined to implement my own at present.
>>Thanks very much.

PHP Database Mailing List (
To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to