prueba agregando esa condicional que expuse en el codigo
Código PHP:
Ver original<?php
if (isset($_POST['enviar'])) {
$shortened = "$sh";
foreach($_POST['url'] as $value)
{
{
$sql = "insert into url_pack (url, shortened) values('$value','$shortened')";
}
}
}
else { ?>
<br /><br />
<form name="furl" method="post" action="pack.php">
<input type="text" name="url[]" value="" />
<br />
<input type="text" name="url[]" value="" />
<br />
<input type="submit" name="enviar" id="enviar" />
</form>
<?php } ?>