Re: [PHP] Getting at $_POST values using a loop

2003-06-23 Thread Dave Alger
Thanks Ralph and everyone else who posted a hint. I'm using the array method. Much better and, I'm ashamed to admit it, it means I can do away with my hidden input with "number of fields" too... regards, Dave "Ralph" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > echo "$fieldna

RE: [PHP] Getting at $_POST values using a loop

2003-06-23 Thread Ford, Mike [LSS]
> -Original Message- > From: Dave Alger [mailto:[EMAIL PROTECTED] > Sent: 23 June 2003 05:12 > > This one is causing me a few headaches. How should I be doing this? > > On my previous page I've created a series of fields using a > loop so that a > field is created like this: > > echo "

RE: [PHP] Getting at $_POST values using a loop

2003-06-22 Thread Ralph
echo "$fieldname:"; for ($i=0, $n=sizeof($_POST['FieldName']); $i<$n; $i++){ // do whatever you need to do with each field echo $_POST['FieldName'][$i]; } -Original Message- From: Dave Alger [mailto:[EMAIL PROTECTED] Sent: Sunday, June 22, 2003 9:12 PM To: [EMAIL PROTECTED] Subj