hi!
when you write your submit form, the submit button has a variable name.
The script that receives the information (action field in the <form> tag) gets the entire $_POST array and that variable too...
the way i do it (like the previous post) is to check at the beginning of the script if the variable is set and act according to it: if the variable is set, then the script has data and can process it. if not, we need to show the form.
basically, your script will be divided by an if clause (for example) and only one part will be run, either the form part or the form-data-processing part.
hope it helped.
[]