I am making the scripts can create button dynamically. It creates the several submit buttons but I can not line up the created button. Once one button is created, the second button is created in next line not in the same line. I don't know how to figure it out now. Please give me your idea. Here is my code.
<?
$button = array();
$button[0] = 'hello';
$button[1] = 'welcome';
$button[2] = 'good-bye';
display_toolbar($button);
function display_button($button)
{
$url = "action.php?action=$button";
echo "<form action=$url method=POST>";
echo "".create_button($button)."";
echo "</form>";
}
function create_button($button)
{
$a = "<input type=submit value=$button>";
return $a;
}
function display_toolbar($button)
{
$j = count($button);
$i=0;
while($i < $j)
{
if($button[$i])
{
display_button($button[$i]);
}
$i++;
}
}
?>
Thanks.... 😕