adding attribute php-variable and set that value