I would like to print a table, using a while loop to insert as many
blank text fields as players specified by the user. How do I put html
inside a php loop.
This is what I have....
<body>
<form name="results" method="post">
Number of players:<input type ="textarea" name="number_pl ayers">
<input name="Submit" type="submit"></form>
<?php
$x=0;
while ($x<$number_pla yers){
print ("Place : $x<br>");
$variable ="<input type="textarea" name=$x>";
print($variable );
$x++;
}
</body>
(I did a search, but didn't understand the answer I found)
blank text fields as players specified by the user. How do I put html
inside a php loop.
This is what I have....
<body>
<form name="results" method="post">
Number of players:<input type ="textarea" name="number_pl ayers">
<input name="Submit" type="submit"></form>
<?php
$x=0;
while ($x<$number_pla yers){
print ("Place : $x<br>");
$variable ="<input type="textarea" name=$x>";
print($variable );
$x++;
}
</body>
(I did a search, but didn't understand the answer I found)
Comment