<form action="Untitled-1.php" method="post">
<input name="bil" type="text" />
<input name="form" type="submit" value="Generate Form" />
<?
$bil = isset($_POST[bil]) ? $_POST[bil] : '';
if(is_numeric($bil))
{
if(isset($_POST['form']))
{
?>
<table width="200" border="1">
</p>
<tr>
<td>Task</td>
<td>Task Time(in min)</td>
</tr>
<?
$num = 1;
while($num<=$bil)
{
?>
<tr>
<td><input type="text" name="biltugas[]" size="15" /></td>
<td><input type="text" name="masatugas[]" size="15" /></td>
</tr>
</form>
<?
$num++;
}
echo "</table>";
}
}
else{
?>
<script language="JavaScript">
alert("please enter in numeric");
</script>
<?
}
?>
Everytime I run this script, it will appear the pop up message box before enter anything.Suppose if enter other than numeric, it only should appear the pop up message box, can anyone please help me?thanx.