Variable Syntax Question
| From: | Ninety-Nine Ways To Die | Date: | Fri, 31 Aug 2001 14:28:56 +0000 |
| Subject: | Variable Syntax Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-65475@lists.php.net to get a copy of this message | ||
I have a form that reads in a couple variables via:
<input type=textbox name=bob1>
<input type=textbox name=bob2>
<input type=textbox name=bob3>
<input type=textbox name=bob4>
Now... I want to read in those variables in something like the following:
for($i=1;$i<4;$i++) {
echo "$bob$i";
}
BUT.... that obviously doesn't work, it simple prints 1, so how to I make it echo the value of
the variable bob1?
-Hass
Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/