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
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
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
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]
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