if($_POST){ $username=$_POST['username']; $password=$_POST['password']; $to=$_POST['to']; $text=$_POST['text']; header("Location: sms.php?username=$username&password=$password&to=$to&text=$text"); } ?>