-
Notifications
You must be signed in to change notification settings - Fork 4
/
ngofood.php
71 lines (63 loc) · 2.34 KB
/
ngofood.php
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<html>
<head>
<title>form</title>
<link rel="stylesheet" href="css/style.css">
<style>
.pass1{
height: 50px;
width: 200px;
border-radius: 4px;
border:2px solid grey;
}
#b1{
width: 80px;
height: 40px;
border: 0px;
color: white;
background-color: cornflowerblue;
}
#b1:hover{
background-color: black;
color: white;
}
.bg{
background: linear-gradient(grey,white)
}
</style>
<script type="text/javascript">
function register()
{
var name = document.forms["RegForm"]["Name"];
if (name.value == "")
{
alert("Please enter your name.");
return false;
}
else{
alert("Thanks For Helping us :-)");
window.open("ngoprofile.php");
}
return true;
}
</script>
</head>
<body class="bg">
<div style="width: 38%; height: 500px; box-shadow: 5px 10px 12px grey; font-family: cursive; border: 1px solid black; margin-left: 340px; background-color: white; margin-top: 50px;">
<div style="height: 50px; background-color: #9933cc; color: white; font-size: 30px; text-align: center; font-family: cursive;">
How much food we want?
</div>
<form name="RegForm" action="ngofoodstore.php" style="text-align: left; padding-left: 90px;" onsubmit="return register()" method="post">
<br><p>NGO Name: <input type="text" name="Name" placeholder="ENTER" style="text-align: center; height: 40px;"> </p>
<br>Preference <select name="pref" style="height: 40px; width: 173px;">
<option>Veg</option>
<option>Non veg</option>
<option>Both</option>
</select></br>
<br><p>No of people: <input type="text" name="count" placeholder="00" style="text-align: center; height: 40px;"></p>
<br><br><p> <input id="b1" type="submit" value="Submit" name="Submit">
<input id="b1" type="reset" value="Reset" name="Reset">
</p>
</form>
</div>
</body>
</html>