<!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" />
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<div id="backdrop" class="space">

<div id="contents">

<?php 
$usermood=array(
'I feel happy'=>'forest',
'I feel sad'=>'lake',
'I feel tired'=>'sky',
);

?>

Get user mood

<form method="post" action="usermood_02.php">

<!--
<select name="mood">
<option value="forest"> I feel happy </option>
<option value="lake"> I feel sad</option>
<option value="sky"> I feel tired</option>
</select>
-->

<select name="mood">
<?php 
foreach($usermood as $key=>$value){
	echo "<br><option value=\"$value\"> $key </option>";
	
}

?>

</select>

<select name="intensity">
<?php for($intensity=0; $intensity<100; $intensity=$intensity+10){
	echo "<br><option value=\"$intensity\"> $intensity</option>";
}
?>


</select>

<br />
<br />

<input type="image" name="submit" src="img/submitbutton.png"  width="50px" class="button"/>

</form>
</div>
</div>
</body>
</html>