Hi There I am hoping that someone can help me with this php issue.
i would like to get the number into the form from this Loop function
for($i = 1; $i <= 100; $i++)
{
echo '<textarea name="textarea" id="textarea" cols="100" rows="10">'.spin($string, false).'</textarea>';
echo '<textarea name="textarea" id="textarea" cols="100" rows="10">'.spin($string, false).'</textarea>';
}
any idea on how I can implement it as to number the textarea(s) from 1 to 100
Thanks
Use string concatenation
., a number will be automatically converted to a string:Or if you want to actually display the number:
If this is not what you want to have to clarify what you want.
Note: An ID has to be unique for any HTML element. In your code, you generate 100 textareas with the same ID.