RE: [PHP-WIN] array way....

2002-08-25 Thread Ross Fleming
}) check before assigning them however, in case you only get $myvar1, $myvar3, $myvar4 etc. Always program defensively, it saves hassle in the long run. Hope that helps Ross > -Original Message- > From: crizz [mailto:[EMAIL PROTECTED]] > Sent: 25 August 2002 17:21 > To: [E

RE: [PHP-WIN] array way....

2002-08-25 Thread Rich Gray
Crizz use myvar[] in the form and PHP will generate an array for you HTH Rich -Original Message- From: crizz [mailto:[EMAIL PROTECTED]] Sent: 25 August 2002 09:21 To: [EMAIL PROTECTED] Subject: [PHP-WIN] array way Can you helpme with that? I have some variables with names like

[PHP-WIN] array way....

2002-08-25 Thread crizz
Can you helpme with that? I have some variables with names like: $myvar1, $myvar2, $myvar3... and so on... and I want to put them in an array. Ofcourse I need a Loop because I don't know the number of the variables. It will probably be like that: $myarray= range(1,NumberOfVars); $i=1 while ($ i