Here's what I have
Resume Adder v1.0
<?php
$dbcnx = @mysql_connect("localhost", "myusername", "mypassword");
if (!dbcnx) {
echo( "<P><font size=-1 face=arial><b>unable to connect to the db." );
exit();
}
if (! @mysql_select_db("docs_resume_1") ) {
echo( "<P><font size=-1 face=arial><b>no db with that name" );
exit();
}
if ($submitresume == "SUBMIT") {
$sql = "INSERT INTO resume SET
name='$name',
email='$email' ";
if (@mysql_query($sql)) {
echo("<P><font size=-1 face=arial><b>You have been added to the DB.</P>");
} else {
echo("<P><font size=-1 face=arial><b>somethings messed up with db.</P>" .
mysql_error() . "</p>");
}
}
?>
And then below this in my php page is a form that the owner can enter his name and email.
The problem I am having is after the form is filled out and the owner clicks submit it says "You have been added to the DB." and the form remains present on the screen. What I want to happen is after you click submit, it should just say "You have been added." and nothing else. So, how do I make it so after he hits submit it does that little trick?
What am i missing???