<form method="post" action="<? $_SERVER['PHP_SELF']; ?>">
<input name="quantita" type="text" value="1">
</form>

<form method="post" action="<? $_SERVER['PHP_SELF']; ?>">
<input name="quantita" type="text" value="
<?= ($_POST['quantita']) ? ($_POST['quantita']) : (1) ?> ">
</form>