I am have trouble with the following code. It works fine the first time thru but will not reload the form for subsquent use
<?php
if($submit)
{
$link = mysql_connect ("mysql145.secureserver.net", "glamorous", "cem3956")
or exit ();
mysql_select_db ("glamorous")
or exit ();
echo $store;
$sql = "insert into store (store) values ('$store')";
$result = mysql_query($sql);
mysql_close($link);
}
else
{
?>
<table width="800" border="0" cellpadding="0" cellspacing="0" summary="">
<tr>
<td align="center"><br><br><form method="post" action="store_form.php">
<b>Store Name: </b><input type="text" name="store"> <br>
<input type="submit" name="submit" value="insert"></form>
</td>
</tr>
</table>
<?
}
?>