rpsep2;11001719 wrote:if I have 2 forms on a page with the method of 'post', how do i define which form im referring to when using the $_POST variable?
You don't, because there's only one option you have to choose from. The $_POST array will only contain data from the form that was POST'ed (because you can't POST two separate forms at once... at least not without equating 'two separate forms' with some JavaScript trickery that creates a pseudo-superset of the two forms).
Now, if your question was 'How do you determine which of the two forms was submitted?', then I would say m@tt has led you down the right path. That is, you'd determine that based on some ancillary information contained within the HTTP request (be it a parameter in the query string, an identifying value in the POST'ed data, etc.).