RE: [PHP-WIN] building a string question

2004-02-03 Thread George Pitcher
e. George in Oxford > -Original Message- > From: Herhuth, Ron [mailto:[EMAIL PROTECTED] > Sent: 3 February 2004 3:58 pm > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] building a string question > > > > I am pulling my hair out here...and I'm thinking someone

Re: [PHP-WIN] building a string question

2004-02-03 Thread Stuart
Herhuth, Ron wrote: for($i=0;$i<$_POST['numberOfAmendments'];$i++) { $amendmentNumber = $_POST['amendmentID_$i']; } Replace your single quotes with double quotes. Variable substitution is not performed on single-quoted strings. -- Stuart -- PHP Windows Mailing List (http://www.php.net/) To unsub

Re: [PHP-WIN] building a string question

2004-02-03 Thread Donatas
You either have to use double quotes to get $i parsed like this: $amendmentNumber = $_POST["amendmentID_$i"]; or you can use single quotes but you have to use $i as variable and not as part of a string like this: $amendmentNumber = $_POST['amendmentID_'.$i]; Cheers, /Donatas Herhuth, Ron wrote

Re: [PHP-WIN] building a string question

2004-02-03 Thread Ignatius Reilly
Syntax error. Try instead $amendmentNumber = $_POST['amendmentID_'.$i]; HTH Ignatius _ - Original Message - From: "Herhuth, Ron" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 03, 2004 16:58 Subject: [PHP-WIN]

[PHP-WIN] building a string question

2004-02-03 Thread Herhuth, Ron
I am pulling my hair out here...and I'm thinking someone might be able to help me. My situation is that I have a series of dynamic form elements that are created on a previous page and now on the process page I am trying to cylce through them...but I can't seem to build the string I need to extra