if ($form == "iburst") {
header ( "Location: iburst.php" );
exit;
}
elseif ($form == "ipass") {
header ( "Location: ipass.php" );
exit;
}
else {
header ( "Location: contact.php" );
exit;
}
is the longhand way that explains itself
header ( "location: " . $form . ".php" );
exit;
is the slick way, as per your email message
$_SESSION['form'] = $form;
header ( "location: thankyou.php" );
exit;
is the way I would do it.
thankyou.php would then use $_SESSION['form'] and an if elsif else to display the appropriate message. Saves having to maintain 3 pages when 1 would do.