> if (!$C_Last_Name$y) { > The form submitting information to this code has field name like > C_Last_Name1 C_Last_Name2 depending on how many Children > are signing up for something. So I need $y to represent the number. You want this: if (!{$C_Last_Name}{$y}) { The {} surrounding the variable name tells PHP that those are unique entities/variables. For example, you could use the following: echo "Hello, {$userInfo->printFirstName()}"; to interpolate a class' method call within a string... Chris
- [PHP] Variable Next To Variable? Jeff Oien
- RE: [PHP] Variable Next To Variable? scott [gts]
- Re: [PHP] Variable Next To Variable? Francis Fillion
- RE: [PHP] Variable Next To Variable? Boget, Chris
- RE: [PHP] Variable Next To Variable? Jeff Oien
- RE: [PHP] Variable Next To Variable? Chadwick, Russell
- FW: [PHP] Variable Next To Variable? Jeff Oien
- RE: [PHP] Variable Next To Variable? scott [gts]
- [PHP] .htaccess php_value Aaron Bennett
- RE: [PHP] .htaccess php_value scott [gts]
- Re: [PHP] .htaccess php_value Brian White
- RE: [PHP] Variable Next To Variable? Chadwick, Russell
- RE: [PHP] Variable Next To Variable? Matthew Luchak