Re: porting to 4.2.3 - variable interpolation

From: Date: Mon, 30 Sep 2002 21:28:51 +0000
Subject: Re: porting to 4.2.3 - variable interpolation
Groups: php.windows 
Request: Send a blank email to php-windows+get-16081@lists.php.net to get a copy of this message
A couple of ideas... the '' and "" string encapsulators do behave slightly differently in PHP, so you might want to try double quotes. Second, are you sure $i is being set? Third, you may need to do this: $key = 'budget_w{$i}'; $value = $_POST['$key']; be sure to echo the value for $key to make sure $i is what you think it should be. -- Brian 'Bex' Huff bex@stellent.com Phone: 952-903-2023 Fax: 952-829-5424 > Hullo, > > After upgrading from 4.2.2 to 4.2.3, I met an annoying problem: > > I POST a form with fields budget_w1, budget_w2, ... > > $_POST['budget_w{$i}'] used to work, but does not anymore with 4.2.3: > Notice: Use of undefined constant budget_w - assumed 'budget_w' in > c:\apache\... > > Anybody can give me a hint? > > Merci! > > Ignatius

« previous php.windows (#16081) next »