Re: BACK
| From: | fabrizio dot ermini at sysdat dot it | Date: | Fri, 21 Jul 2000 09:30:05 +0000 |
| Subject: | Re: BACK | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-1391@lists.php.net to get a copy of this message | ||
>
> I don't find a PHP3 istruction that perform a CLICK ON THE BACK BUTTON of
> the browser.
> It is available ?
There is no a dedicated instruction since it really is a thing that
should be worked down at client level.
However, you can obtain it also in PHP with a syntax like this:
<? printf ("<a href=\"%s\">Back</a>\n", $HTTP_REFERER);?>
(NB: I'm not sure, but maybe you need PHP_TRACK_VARS set)
But this sometimes doesn't work like the user expects, since it
does not represent the same page the user have seen, but
effectively requires it again to the server. This is a big difference
when you use data-driven pages, and I use this sintax sometimes
precisely for this reason, but maybe this is not what you were
looking for!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Fabrizio Ermini Alternate E-mail:
C.so Umberto, 7 faermini@tin.it
loc. Meleto Valdarno Mail on GSM: (keep it short!)
52020 Cavriglia (AR) faermini@sms.tin.it