Date: 10/29/01
- Next message: Mark Newnham: "RE: [PHP-DB] Variables in a loop"
- Previous message: Rodolfo Napoles: "Re: [PHP-DB] Fatal error: Call to undefined function: pg_connect() in ..."
- Next in thread: Mark Newnham: "RE: [PHP-DB] Variables in a loop"
- Maybe reply: Mark Newnham: "RE: [PHP-DB] Variables in a loop"
- Maybe reply: Rick Emery: "RE: [PHP-DB] Variables in a loop"
- Reply: * R&zE:: "Re: [PHP-DB] Variables in a loop"
- Reply: Bruno Gimenes Pereti: "Re: [PHP-DB] Variables in a loop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm trying to write a loop to read variables I receive from a form:
<form ...>
<input name=a1 value=..>
<input name=a2 value=..>
<input name=a3 value=..>
<input name=a4 value=..>
I'd like to get something like:
for ($i=1; $i<=10; $i++) { $tab[$i]="a".$i ;}
The expression "a".$i is actually a string, not a variable. Any idea how to
"read" the value of that string?
Thanks for your help.
Jean-Louis
- Next message: Mark Newnham: "RE: [PHP-DB] Variables in a loop"
- Previous message: Rodolfo Napoles: "Re: [PHP-DB] Fatal error: Call to undefined function: pg_connect() in ..."
- Next in thread: Mark Newnham: "RE: [PHP-DB] Variables in a loop"
- Maybe reply: Mark Newnham: "RE: [PHP-DB] Variables in a loop"
- Maybe reply: Rick Emery: "RE: [PHP-DB] Variables in a loop"
- Reply: * R&zE:: "Re: [PHP-DB] Variables in a loop"
- Reply: Bruno Gimenes Pereti: "Re: [PHP-DB] Variables in a loop"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

