MRMAN
06-23-2006, 12:48 PM
howdy.
I have a form with over 30 text boxes on.
15 are called inputbox... (where ... is a number from 1 to 15)
and 15 are called outputbox... (where ... is a number from 1 to 15)
now in PHP you would be able to call the information using a variable variable
something like this.
for($counter = 1; $counter <= 15; $counter++)
{
$variablename = "inputbox".$counter;
$text = $_POST[$$variablename];
$variable2 = "outbutbox".$counter;
$$variable2 = $text;
}
so i was wondering if there is a way i can do something similar in c#
Cheers.
MRMAN
I have a form with over 30 text boxes on.
15 are called inputbox... (where ... is a number from 1 to 15)
and 15 are called outputbox... (where ... is a number from 1 to 15)
now in PHP you would be able to call the information using a variable variable
something like this.
for($counter = 1; $counter <= 15; $counter++)
{
$variablename = "inputbox".$counter;
$text = $_POST[$$variablename];
$variable2 = "outbutbox".$counter;
$$variable2 = $text;
}
so i was wondering if there is a way i can do something similar in c#
Cheers.
MRMAN