SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: $_GET['name.x'] ???
-
May 29, 2007, 09:48 #1
- Join Date
- Feb 2006
- Location
- Altoona, PA. USA
- Posts
- 1,945
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
$_GET['name.x'] ???
i have some buttons like this:
<INPUT TYPE="image" name="update" value="update" SRC="images/update_button.gif" width="92" height="25" BORDER="0" ALT="Update">
when they are passed firefox displays "update=update&update.x=22"
but ie only shows "update.x=22"
so in order to know which button was pressed i need to look for the variable update.x or empty.x or checkout.x
but thenever i try
PHP Code:if($_GET['empty.x']){
}
THANKS.
-
May 29, 2007, 10:15 #2
- Join Date
- Jan 2006
- Posts
- 268
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I remember having a problem with this a few years ago, can't quite remember what I did.
try doing
PHP Code:print_r($_GET);
If you give someone a program,
you will frustrate them for a day;
if you teach them how to program,
you will frustrate them for a lifetime.
-
May 29, 2007, 10:36 #3
- Join Date
- Feb 2006
- Location
- Altoona, PA. USA
- Posts
- 1,945
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
May 29, 2007, 10:45 #4
- Join Date
- Jan 2007
- Location
- Belgium
- Posts
- 591
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You shouldn't use decimal points in variable names in the URL, only letters, underscores and digits. Variable names are pretty sensitive, so don't take the risk.
FOR SALE: 1 set of morals, never used, will sell cheap
-
May 29, 2007, 10:52 #5
- Join Date
- Feb 2006
- Location
- Altoona, PA. USA
- Posts
- 1,945
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Bookmarks