Since you've [man]echo/maned the result to the browser, if you want to redirect, you'll have to use an HTTP meta-refresh statement.
In PHP, I'd probably put the result message into a session or global variable, then use [man]header/man to redirect, and put the result message either in the next page, or in a Javascript alert() window. YMMV ...