Valor sequencial salvos em variaveis.
Bom dia ,
pessoal , seguinte :
Tenho um pequeno formulario , bastante simples :
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="teste11.php">
<p>
<label for="textfield"></label>
<input type="number" name="inicial" />
inicial
</p>
<p>
<label for="textfield2"></label>
<input type="number" name="quantidade" />
quantidade</p>
<p>
<input type="submit" name="button" value="Submit" />
</p>
</form>
</body>
</html>
Os dados prenchidos nele , são enviados para uma outra pagina .php que faz a exibição dos dados preenchidos.
teste11.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
$inicial_ex = $_POST["inicial"];
$quantidade_ex = $_POST["quantidade"];
echo $inicial_ex;
echo $quantidade_ex;
?>
</body>
</html>
porem , gostaria que ocorre-se o seguinte , supondo que o usuario digite a quantidade " 10 "
fosse exibido os numeros em sequencia até 10 . exemplo
1 2 3 4 5 6 7 8 9 10
é possivel isso ?
Discussão (7)
Carregando comentários...