-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch-users-form.php
38 lines (29 loc) · 1.25 KB
/
search-users-form.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
<?php
function search_users(){
?>
<form method="post" action="profiles.php" class="flexform">
<fieldset class="flexform">
<legend>Enter info to search for someone:</legend>
<div>
<label for="nameinput">Enter a name:</label>
<input type="text" name="searched_name" id="nameinput" />
</div>
<div>
<label for="ageinput">Enter an age (must be at least 18):</label>
<input type="number" name="searched_age" id="ageinput" min="18" max="99" step="1" />
</div>
<div>
<label>Enter a sex(es):</label>
<input type="checkbox" name="searched_female" id="femaleinput" value="female" />
<label for="femaleinput">Female</label>
<input type="checkbox" name="searched_male" id="maleinput" value="male" />
<label for="maleinput">Male</label>
<input type="checkbox" name="searched_other" id="otherinput" value="other" />
<label for="otherinput">Other/Intersex/Not Specified</label>
</div>
</fieldset>
<input type="submit" name="search" value="Search" />
</form>
<?php
}
?>