<?php
// FILE: protect_vulnerability_error_handling_none.php
// protecting against common vulnerabilities

// no error handling at all!!!

$name = $_GET['name'];
$value = array(1,2,3,4,5);
$list = '';

if ($value[5] == 0) {
	$error = 'No Value!';
}

foreach ($list as $item) {
	$check .= 'Item :' . $item;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Protect Against Vulnerabilities</title>
</head>
<body>
<h1>protect_vulnerability_error_handling_none.php</h1>

<h3>TEST</h3>

<br />Name: <?php echo $name; ?>
<br />Check: <?php echo $check; ?>
<br />Value: <?php echo sum($value); ?>

</body>
</html>
