i think you need to have a conditional statement, such as
if ( $submit ) {
// okay we know that the user has pressed submit
// process form
} else {
// display generic html form
// make sure submit looks like:
<input type="submit" name="submit" value="submit">
cheers,
kyle