Submitting variables via /'s
| From: | Ashley M. Kirchner | Date: | Fri, 05 Oct 2001 16:52:03 +0000 |
| Subject: | Submitting variables via /'s | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-70114@lists.php.net to get a copy of this message | ||
I've seen documentation on this somewhere, but now I can't remember
where.
I want to move away from
file.php?var1=1&var2=2&var3=3
...and go to
file.php/1/2/3
...and still be able to do what I need to be done (extract the
variables and use them as I need them.)
The only question I have with this approach is, what happens with
$PHP_SELF? I believe it becomes the full string (file.php/1/2/3) where
with the other approach, it's only file.php (since it strips away the
?var1=1&var2=2&var3=3 part) - how does one deal with that? I can't
simply refer to $PHP_SELF anymore if I'm changing those variables, can
I?
--
W | I haven't lost my mind; it's backed up on tape somewhere.
+--------------------------------------------------------------------
Ashley M. Kirchner <mailto:ashley@pcraft.com> .
303.442.6410 x130
IT Director / SysAdmin / WebSmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6
http://www.pcraft.com ..... . . . Boulder, CO 80303,
U.S.A.