aqui les dejo otro codigo php para tablas de multiplicar
espero que les sirva para que recolecten codigo php saludos
<html xmlns:"http://www.w3.org/1999/xhtml">
<head>
<style>
fieldset
{
border: solid 1px #698cb6;
margin-bottom:15px;
margin-top:15px;
border:groove #abcdef 1px;
padding:25px;
}
legend
{
font-size:12px;
font-weight:bold;
color:white;
padding:5px;
background-color:black;
font-variant:small-caps;
}
</style>
<title>Tabla de Multiplicar</title>
</head>
<body>
<form method="post" action="tablemulti.php" enctype="multipart/form-data">
<fieldset>
<legend>Ingrese un numero para Multiplicar</legend>
<input type="text" name="table" id="tables" class="Caja"/>
<input type="submit" name="" value="Multiplicar" />
</fieldset>
</form>
<?php
if($_POST)
$y = ($_POST['table']);
$x=0;
$z;
if ($y >=1)
{
echo"La tabla del $y es: <br>";
while ($x<10)
{
$x++;
echo"<tr><td>$y x $x: </td></tr> ".(($z= $y*$x )); echo"<br>";
}
}
elseif (($y< 0) && ($y="A-z"))
{
echo "Ingrese solo numeros o valores mayores a 0";
}
?>
</body>
</html>
espero que les sirva para que recolecten codigo php saludos
<html xmlns:"http://www.w3.org/1999/xhtml">
<head>
<style>
fieldset
{
border: solid 1px #698cb6;
margin-bottom:15px;
margin-top:15px;
border:groove #abcdef 1px;
padding:25px;
}
legend
{
font-size:12px;
font-weight:bold;
color:white;
padding:5px;
background-color:black;
font-variant:small-caps;
}
</style>
<title>Tabla de Multiplicar</title>
</head>
<body>
<form method="post" action="tablemulti.php" enctype="multipart/form-data">
<fieldset>
<legend>Ingrese un numero para Multiplicar</legend>
<input type="text" name="table" id="tables" class="Caja"/>
<input type="submit" name="" value="Multiplicar" />
</fieldset>
</form>
<?php
if($_POST)
$y = ($_POST['table']);
$x=0;
$z;
if ($y >=1)
{
echo"La tabla del $y es: <br>";
while ($x<10)
{
$x++;
echo"<tr><td>$y x $x: </td></tr> ".(($z= $y*$x )); echo"<br>";
}
}
elseif (($y< 0) && ($y="A-z"))
{
echo "Ingrese solo numeros o valores mayores a 0";
}
?>
</body>
</html>