$r) {
$output .= $k . "\t" . $r . "\n";
$percentages[$k] = round($r*100/$votescast);
}
$saved = file_put_contents("data/results.txt",$output,LOCK_EX);
switch ($_REQUEST['options']) {
case "1" :
$answer = "allocation of payments";
break;
case "2" :
$answer = "minimum payment";
break;
case "3" :
$answer = "unsolicited credit increases";
break;
case "4" :
$answer = "re-pricing existing debt";
break;
case "5" :
$answer = "complexity";
break;
default :
break;
}
$tweetstring = "I voted '{$answer}' in @bisgovuk consultation poll on credit and store card issues: http://bit.ly/3SooAO";
$emailstring = "I voted '{$answer}' in the consultation poll on credit and store card issues - I thought you might be interested in the consultation: http://bit.ly/3SooAO";
$fbstring = "http://www.bis.gov.uk/creditconsultation";
$content = "