Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-10 Thread Tom Rogers
Hi This works (save as whatdo.php) Whatdo "; $row++; endwhile; else: ?> Row Options Load Delete Change Category

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-10 Thread Christopher William Wesley
Name the form element without the brackets ... just "whatdo" instead of "whatdo[]". When $whatdo[] makes it to your formhandler, it's an array. (You _could_ access $whatdo[0] ... but that may or may not be more confusing.) ~Chris /"\

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-10 Thread Lara J. Fabans
Just an addendum, I changed it from radio buttons to a pop up menu Load Delete Change Category Again, if I print_r (HTTP_POST_VARS), I can see the Array ( [whatdo] => Array ( [0] => load [1] => delete), [other s

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-10 Thread Lara J. Fabans
My bad for typing it in from memory. I'd retyped it in a few times, so I thought i had it perfect. Here's the exact code: print_r ($HTTP_POSTVARS); // yeilds the array that I pasted down below if ($flag=="process") { $whatdo = $HTTP_POSTVARS['whatdo']; print_r($what_do); // blank . . . for (

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-09 Thread Tom Rogers
Hi Your whatdo's will be whatdo0 whatdo1...whatdox You need to do like this if I understand what you are doing :) $row=0; while($row < $numofrows): $var = "whatdo".$row; $whatdo = $submitted_vars["$var"]; //do whatever with $whatdo . $row ++; endwhile; Tom At 09:41 AM 10/11/01, La

Re: [PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-09 Thread Christopher William Wesley
On Fri, 9 Nov 2001, Lara J. Fabans wrote: > The original form has a table where each row has a set of 3 radio > buttons name="whatdo[]" where $x is the row counter. Well, for a set of raido buttons, they should all have the same name. In your case, all 3 radio buttons should be named "whatdo"

[PHP] HTTP_POST_VARS: Data there, but can't get to it

2001-11-09 Thread Lara J. Fabans
Hi, I'm having some difficulties accessing HTTP_POST_VARS The original form has a table where each row has a set of 3 radio buttons name="whatdo[]" where $x is the row counter. (I'm using PHP to pull info into a table, then the user manipulates the info, and it places the info into 2 other ta