-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdone.php
More file actions
52 lines (47 loc) · 1.56 KB
/
done.php
File metadata and controls
52 lines (47 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php include("header.php");
include("dbconnect.php");
?>
<div id="body">
<h1 class="textshadow">Bon Appetit!</h1>
<div class="content" style="padding: 10px;">
<span class="gray">You're done! <br /> You just cooked:
<ul>
<?php
foreach ($_SESSION['dishes'] as $index => $id) {$result = mysql_query("SELECT recipe_name FROM recipe WHERE id = $id")
or die(mysql_error());
while ($row = mysql_fetch_assoc($result)) {
$name = $row['recipe_name'];
echo "<li>$name</li>";
}
}
?>
</ul> </span>
<form method="post" action="save.php">
<div class="box" style="padding: 20px">
<fieldset>
<input id="save" name="save" type="checkbox" value="save" />
<label for="save"> Save to cookbook</label><br />
<!--
<input id="public" name="public" type="checkbox" value="public" /> <label for="public"> Publish to public database</label><br />
-->
Title:<br />
<input name="title" type="text" /><br />
Rate this meal: <br />
<!--<img src="images/star.png"/><img src="images/star.png"/><img src="images/star.png"/><img src="images/star.png"/><br />-->
<select name="rating">
<option value="1">★</option>
<option value="2">★★</option>
<option value="3">★★★</option>
<option value="4" selected>★★★★</option>
</select><br />
Comments: <br />
<textarea name="comments" style="width:100%; height: 80px;"></textarea>
</fieldset>
</div>
<input id="search" type="submit" value="DONE!" style="float:none" />
</form>
</div>
</diV>
</div>
</body>
</html>