-
Notifications
You must be signed in to change notification settings - Fork 0
/
questionnaire.php
132 lines (114 loc) · 4.9 KB
/
questionnaire.php
1
<?php$list = $_POST["list"];$subj = $_POST["subject"];$prID = $_POST["prID"];$n = $_POST["n"];?><!doctype html><html><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="Author" content="Keith Johnson"><title>questionnaire</title><script language="javascript">function show_div(targetdiv) { var x = document.getElementById(targetdiv); if (x.style.display==="none") { x.style.display= "block"; } }</script><style>input:required:invalid { border: 2px solid red; }input:required:valid { border: 1px solid black; }</style></head><body style="max-width:600px"><p><b>Questionnaire.</b></p><form NAME="questions" ACTION="finished.php" METHOD=POST> <input type="hidden" name="n" value=<?php echo $n; ?> /> <input type="hidden" name="subj" value=<?php echo $subj; ?> /> <input type="hidden" name="prID" value=<?php echo $prID; ?> /> <input type="hidden" name="list" value=<?php echo $list; ?> /> <p>1. How old are you? <select required NAME="age"> <option VALUE="">choose</option> <option VALUE="18-20">15-20</option> <option VALUE="21-25">21-25</option> <option VALUE="26-30">26-30</option> <option VALUE="31-35">31-35</option> <option VALUE="36-40">36-40</option> <option VALUE="41-45">41-45</option> <option VALUE="46-50">46-50</option> <option VALUE="51-55">51-55</option> <option VALUE="56-60">56-60</option> <option VALUE="61-70">61-70</option> <option VALUE="71-80">71-80</option> <option value="81+">81+</option> </select> What is your gender? <input type="text" name="gender" required maxlength="18" size="20"> </select></p> <p>2. What is your race/ethnicity? <input type="text" name="race" required maxlength="18" size="20"> </p> <p>3. Do you have siblings? <input type="radio" id="has_sib" name="siblings" value="yes" onclick="show_div('birthorder')"> <label for="has_sib">yes</label> <input type="radio" id="no_sib" name="siblings" value="no"> <label for="no_sib">no</label><br> </p> <div id="birthorder" style="display:none"> <p>What is your birth order? <select name="birth_order"> <option value="" selected="selected">choose</option> <option value="oldest_sib">oldest</option> <option value="youngest_sib">youngest</option> <option value="middle_sib">in the middle</option> </select></p></div> <p>4. When did you begin using English in your daily life?<br> <select required name="English"> <option value="" selected ="selected">choose</option> <option value="native">I grew up speaking English as soon as I started to talk.</option> <option value="early">I started using English in my earliest days at school.</option> <option value="late">I started using English when I was in my teens.</option> <option value="adult">I started using English as an adult.</option> </select> </p> <p>5. What other languages can you use to converse with other people? <br> <input TYPE="text" NAME="other_lgs" required maxlength="60" size="30"><br> <i>If more than one, list them in the order of your comfort or proficiency from most to least.</i> </p><p>6. What type of job do you have? <br><i>Students: what are you aiming for? Retired: what did you do?</i><br> <select required NAME="occupation"> <option value="">choose</option> <option VALUE="arch_eng">Architecture and Engineering</option> <option VALUE="arts">Arts and Design</option> <option VALUE="cleaning">Building and Grounds Cleaning</option> <option VALUE="business">Business and Financial</option> <option VALUE="service">Community and Social Service</option> <option VALUE="IT">Computer and Information Technology</option> <option VALUE="constr">Construction and Extraction</option> <option VALUE="educ">Education, Training, and Library</option> <option VALUE="farm">Farming, Fishing, and Forestry</option> <option VALUE="food">Food Preparation and Serving</option> <option VALUE="gig">Gig Economy, work on demand</option> <option VALUE="health">Healthcare</option> <option VALUE="install">Installation, Maintenance, and Repair</option> <option VALUE="legal">Legal</option> <option VALUE="life">Life, Physical, and Social Science</option> <option VALUE="manage">Management</option> <option VALUE="math">Math</option> <option VALUE="media">Media and Communication</option> <option VALUE="military">Military</option> <option VALUE="office">Office and Administrative Support</option> <option VALUE="pers_care">Personal Care and Service</option> <option VALUE="production">Production</option> <option VALUE="protective">Protective Service</option> <option VALUE="sales">Sales</option> <option VALUE="transport">Transportation and Material Moving</option> </select></p> <input TYPE="submit" VALUE="Submit your responses"></form></body></html>