on the html form clause, you probably write the code :
<input type=submit value="add">
so when the form is submit ,No $submit is declared.
you must write the code such as :
<input type=submit value="add" name="Submit">
so the variabe $Submit has already declared.