<?php
session_start();
if ( isset($_POST['fType']) && ($_POST['fType'] == 'flash' || $_POST['fType'] == 'embed') ) {
$_SESSION['type'] = $_POST['fType'];
}
else {
die('Player type is incorrect');
}
if ( isset($_POST['fUsername']) ) {
$_SESSION['user'] = $_POST['fUsername'];
}
else {
die('Username not present');
}
if ( isset($_POST['fPassword']) ) {
$_SESSION['pass'] = $_POST['fPassword'];
}
else {
die('Password not present');
}
if ( isset($_POST['fUrl']) ) {
$_SESSION['url'] = $_POST['fUrl'];
}
else {
die('Radio URL not present');
}
header("Location: start.php");
?>