php-windows Digest 2 Feb 2007 03:20:52 -0000 Issue 3127
Topics (messages 27429 through 27433):
Re: Back button in PHP
27429 by: Jarrett Meyer
27430 by: Andreas Lysdal
27433 by: Martin Alsinet
Search results
27431 by: Harpreet
27432 by: Armando
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
$_SERVER["HTTP_REFERER"] is the previous page provided that the user got to the
current page by following a link.
This can be spoofed, so it isn't perfect.
----- Original Message ----
From: Alf Stockton <[EMAIL PROTECTED]>
To: php windows <[email protected]>
Sent: Thursday, February 1, 2007 8:59:23 AM
Subject: [PHP-WIN] Back button in PHP
I seem to remember that there was a simple call to get reference to the
the screen previous to where the client currently is. Please remind me
how this is done?
I need to place a Back button on my clients screens.
--
Regards,
Alf Stockton www.stockton.co.za
You will be married within a year, and divorced within two.
My email disclaimer is available at www.stockton.co.za/disclaimer.html
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
It only possible in javascript:
try this link a then search:
http://javascriptsource.internet.com/
Alf Stockton skrev:
I seem to remember that there was a simple call to get reference to
the the screen previous to where the client currently is. Please
remind me how this is done?
I need to place a Back button on my clients screens.
--- End Message ---
--- Begin Message ---
---------- Forwarded message ----------
From: Martin Alsinet <[EMAIL PROTECTED]>
Date: 02-Feb-2007 00:20
Subject: Re: [PHP-WIN] Back button in PHP
To: Alf Stockton <[EMAIL PROTECTED]>
Hi Alf
On 01/02/07, Alf Stockton <[EMAIL PROTECTED]> wrote:
I seem to remember that there was a simple call to get reference to the
the screen previous to where the client currently is. Please remind me
how this is done?
You can do it with:
<A HREF="javascript:history.go(-1)">Go back</A>
watch out for the HTTP_REFERER way, because some versions of Internet
Explorer do not set it, so you cant rely on it. Check this Google
search about it: http://tinyurl.com/2y4egb
Martin
--- End Message ---
--- Begin Message ---
I have a search page on my web application that searches a database with
1000's of rows. The search results are returned in like 45-50 seconds.
If the user goes to another page and then returns to the same page again
it takes the same amount of time.
Is there a way to use session variables to remember the search results
and if user comes back to the page with the same criteria it shows the
static results and not take as long.
Help is needed urgent. Thanks
Regards,
Harpreet Kaur
--- End Message ---
--- Begin Message ---
I think before trying this you should take a closer look at your
database and query structure to determine what is causing a 45 to 50
second delay in getting the results. It may be that you just need to
optimize a bit. For instance, if you have a large number of columns and
are using select *, perhaps instead only select the columns you actually
need to display.
One of my web apps for part number searches takes a user's input, finds
all matching part numbers in Table A which has 42,000 rows, then takes
all of those Table A results and finds all the corresponding part
numbers in Table B that has 115,000 rows. This takes 3 seconds or less
depending on the number of results.
Some first things to check are how many rows are there in the table? You
say 1000's.. but even 100,000 really isn't all that many. How many
results are being returned on a typical user's query? Cheers.
Armando
Harpreet wrote:
I have a search page on my web application that searches a database with
1000's of rows. The search results are returned in like 45-50 seconds.
If the user goes to another page and then returns to the same page again
it takes the same amount of time.
Is there a way to use session variables to remember the search results
and if user comes back to the page with the same criteria it shows the
static results and not take as long.
Help is needed urgent. Thanks
Regards,
Harpreet Kaur
--- End Message ---