Hi
This works (save as whatdo.php)
Whatdo
";
$row++;
endwhile;
else:
?>
Row Options
Load
Delete
Change Category
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 /"\
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
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 (
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
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"
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
7 matches
Mail list logo