I'm trying to create a loop to create 20 text input fields for username & 20 text input fields for password and my current attempt is listed below. It isn't working & if I view source the $i variable doesn't seem to be expanding properly.
<?php
for ($i = 0; $i < 20; $i++) {
echo ('<input type="text" id="username . $i" class="userInfo" value="<?php echo $userName1; ?>" />');
echo ('<input type="text" id="password . $i" class="userInfo" value="<?php echo $password1; ?>" />');
}
?>