Doing this fixed it: mysql_query("INSERT INTO domainregistrations (domain,type,years,price) VALUES ('$_POST[domainregister_domain]$i','$_POST[domainregister_type]$i','$_POST[domainregister_years]$i','$_POST[domainregister_price]$i')");
I just moved the $i to the outside of the [] and it works now. Thanks for everyone's input..helped me open my eyes a bit. Tyler On Mon, 2003-12-22 at 12:51, John W. Holmes wrote: > Tyler Longren wrote: > > Error: > > Parse error: parse error, expecting `']'' in > > /usr/local/apache/htdocs/UP/index.php on line 871 > > > > ('$_POST[domainregister_domain$i]', > > If you're going to be creating array keys like that, break out of the > string to do it. > > ('" . $_POST['domainregister_domain' . $i] . "', ... > > Having a key like that kind of begs the question of why you're not just > using $_POST['domainregister_domain'][$i], though... > > -- > ---John Holmes... > > Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ > > php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php