I am not sure if i am treating my *"same page"* forms in a good way.  

The way i am doing, is adding a hidden input called **"action"** with `value='1'` to my form.  

And then, in the beggining of the page, i verify if the `$_POST["action"]` has a value, if it does, then i run the code. 

I don't know if this is the right way. If there is any other way to do that, i will be greatful to know.  

Thanks in advance.