<?php 
//sanitize input
$val = addslashes(htmlspecialchars(strip_tags(trim($_GET['poll']))));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="css/poll.css" type="text/css" media="screen" />
<title>Your Life Your Money Weekly Poll</title>


<!--[if lte IE 7]>

<style type="text/css">

 .pds-radiobutton {
 	margin: 0 5px 0px 0;
 	}
    
</style>
    
<![endif]--> 



</head>

<body>

<?php 

# echo "the poll is: $val"?>

<?php 

if (!isset($val)||!$val) { # ID was not set in the URL ?>

<h2>We're Sorry</h2>
<p>This poll is no longer available or does not exist.</p>

<?php } else { # ID was successfully passed through the URL ?>

<script type="text/javascript" language="javascript" charset="utf-8" src="http://static.polldaddy.com/p/<?php echo $val; ?>.js"></script>

<?php } ?>

</body>
</html>
