<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?PHP
	session_start(); // Initialize session data
	
	// Checks if form was submitted
	if($_SERVER['REQUEST_METHOD'] == 'POST') {
		$_SESSION['useBT'] = $_POST['useBT'];
		if($_POST['useBT'] == 'No'){
			header("Location: pg8.php");
		}
		else if($_POST['useBT'] == 'Yes'){
			header("Location: pg2.php");
		}
	}
	else{
		if(isset($_SERVER['HTTP_REFERER'])){ //Who refered to this page
			$_SESSION['refer'] = $_SERVER['HTTP_REFERER'];
		}
		else{
			$_SESSION['refer'] = 'None';
		}
	}
?>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link rel="stylesheet" type="text/css" href="css.css" />
<title>BitTorrent Search Engine Survey</title>
<style type="text/css">
.auto-style1 {
	text-align: center;
}
.auto-style2 {
	text-align: right;
}
.auto-style3 {
	text-align: center;
	font-size: small;
}
</style>
</head>

<body>
<table style="width: 800px" align="center">
	<tr>
		<td>
<h1 class="auto-style1">BitTorrent Search Engine/Site Survey</h1>
		<p>&nbsp;<p>We highly appreciate your participation.<p>This is an academic research study that tries to measure whether users access 
multiple BitTorrent search engines/sites and how frequently (not which site is 
popular). We do not ask for any personal data and survey findings will be made public.<br />
This survey is conducted by
		the
<a href="http://www.cnrl.colostate.edu/" target="_blank">Computer Networking 
Research Laboratory</a> (CNRL) of the
<a href="http://www.colostate.edu/" target="_blank">Colorado State University, 
		USA.</a><br />
Please feel free to <a href="http://www.cnrl.colostate.edu/pages/contactus.html" target="_blank">
Contact Us</a> for any questions, technical difficulties, etc.<br />
</p>
<p>Thank you.<br />
- CNRL&nbsp;</p>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td>
<p><strong>Do you use</strong> BitTorrent, µTorrent, Xunlei, Vuze, etc. to download Videos, Music, Games, Software, e-Books, 
etc.?</p>
		<p>
		<form method="post" action="index.php">
			<input name="useBT" type="radio" style="width: 40px"  class="radio" value="Yes"/>Yes<br />
			<input name="useBT" type="radio" style="width: 40px" class="radio" value="No"/>No<br />
			<br />
			<div class="auto-style2">
			<input name="Next" type="submit" value="Next >>" /></div>
		</form>
		<p class="auto-style3">Progress 1/8</p>
		</td>
	</tr>
</table>
</body>

</html>
