I'm not sure this would fix it, but for $fwi, instead of checking if its set or not, maybe try this:
if($fwi != '') // will be blank if form hasn't been submitted
{
// code to process the form goes here
} // end if(...
Paulnaj: It is very possible to use $GET and $POST in the same form. Here's the example:
<form action="my.php?Action=DoSomthing&ID=1" method="post">
<input type="text" name="test" value="datagoeshere">
</form>
This form will only work as a post. If you use get, the URL data that was added will be dropped (instead, you just add it as hidden form fields). In this example, you'd use $POST to retrieve form variable "test" and use $GET to retrieve URL variables "ID" and "Action".