[vox-tech] another php question
nbs
vox-tech@lists.lugod.org
Thu, 6 Jun 2002 11:49:08 -0700
On Thu, Jun 06, 2002 at 11:04:19AM -0700, Peter Jay Salzman wrote:
>
> Click on your favorite car:
> <UL>
> <LI><A href="display_stats.php3" arg="mustang.dat">mustang</A>
> <LI><A href="display_stats.php3" arg="beetle.dat">beetle</A>
> ...
> </UL>
>
> can i do this sort of thing with php3?
Why not just something CGI-flavored, like:
<A href="display_stats.php3&file=mustang.dat">mustang</A>
(being careful, of course, as to what you actually agree to opening and
reading in; e.g., abort if they say "file=/etc/passwd" :^) )
In your "display_stats.php3" file, you can refer to the variable as:
$file
:)
-bill!