<?php if ($_POST) { // procesar datos header("location:otra_pagina.php"); } else { ?><form>....</form><? }