hey all.
im relatively new when it comes to working with php and mysql. currently i am trying to aid my professor in setting up a questionnaire. i have the form all set up however, i cannot figure out what i need to do to get the info sent somewhere. i was going to do by email to my professor but figured maybe by database would be the best way. if any of you can help me set up mysql to work to pull the information from the form and put it into a working db that can be viewed easily, that would be great.
here is the code for my form:
thanks
im relatively new when it comes to working with php and mysql. currently i am trying to aid my professor in setting up a questionnaire. i have the form all set up however, i cannot figure out what i need to do to get the info sent somewhere. i was going to do by email to my professor but figured maybe by database would be the best way. if any of you can help me set up mysql to work to pull the information from the form and put it into a working db that can be viewed easily, that would be great.
here is the code for my form:
| Code: |
| <html>
<head>Master's Questionaire</head> <title>Master's Questionaire</title> <body> <form action="sendmail.php" method="post"> Name: <input name="name" type="text" /> <br /> <br /> Email: <input name="email" type="text" /> <br /> <br /> 1. What types of courses do you teach? <br /> <input type="radio" value="CS" name="course">Computer Science<br /> <input type="radio" value="IT" name="course">Information Technology<br /> <input type="radio" value="Math" name="course">Mathematics<br /> <input type="radio" value="Others" name="course">Others<br /> <br /><br /> 2. What is the highest education degree that you hold? <br /> <input type="radio" value="Master's" name="degree">Master's degree or higher<br /> <input type="radio" value="Bachelor's" name="degree">Bachelor's degree<br /> <input type="radio" value="Others" name="degree">Others<br /> <br /><br /> 3. If you have a Master's degree, what area is your Master's degree in? <br /> <input type="radio" value="CSIT" name="master">Computer Science or Information Technology<br /> <input type="radio" value="Math" name="master">Mathematics <br /> <input type="radio" value="Education" name="master">Education <br /> <input type="radio" value="Others" name="master">Others <br /> <br /><br /> 4. If you don't have a Master's degree, would you like to pursue one? <br /> <input type="radio" value="Yes" name="pursue">Yes<br /> <input type="radio" value="Maybe" name="pursue">Maybe<br /> <input type="radio" value="No" name="pursue">No<br /> <br /><br /> 5. If you were to pursue a Master's degree, what area would that be in? <br /> <input type="radio" value="CSIT" name="area">Computer Science or Information Technology<br /> <input type="radio" value="Math" name="area">Mathematics <br /> <input type="radio" value="Education" name="area">Education <br /> <input type="radio" value="Others" name="area">Others <br /> <br /><br /> 6. If Western New England College establishes a Master's program in Computing, would you consider enrolling in that program? <br /> <input type="radio" value="Yes" name="wnec">Yes<br /> <input type="radio" value="Maybe" name="wnec">Maybe<br /> <input type="radio" value="No" name="wnec">No<br /> <br /><br /> 7. What will be your criteria to pursue a Master's degree in Computing(check all that apply)? <br /> <input type="checkbox" value="Length" name="criteria[]">Length of time to graduate<br /> <input type="checkbox" value="Time" name="criteria[]">Time in which classes are offered<br /> <input type="checkbox" value="Cost" name="criteria[]">Cost<br /> <input type="checkbox" value="Once" name="criteria[]">Once a week courses<br /> <input type="checkbox" value="Twice" name="criteria[]">Twice a week courses<br /> <input type="checkbox" value="Other" name="criteria[]">Other Criteria<br /> <br /><br /> 7a. If you chose "Other Criteria" in the previous question, describe the other criteria. <br /> <textarea name="detail" rows="5" cols="50"></textarea><br /> <br /><br /> 8. If cost was one of your criteria, which one of the following per course cost will influence your decision in pursuing a Master's program in Computing? <br /> <input type="radio" value="1500" name="cost">$1500 or above<br /> <input type="radio" value="1250" name="cost">$1250-$1500<br /> <input type="radio" value="1000" name="cost">$1000-$1250<br /> <input type="radio" value="750" name="cost">$750-$1000<br /> <br /><br /> 8a. What is the influence percentage of your choice from the previous question? <br /> <input type="text" name="influence" /> <br /><br /> 9. Assuming that your criteria were met and a program was available today, when would you start the program? <br /> <input type="radio" value="Now" name="time">Immediately<br /> <input type="radio" value="Months" name="time">In 6 Months<br /> <input type="radio" value="Year" name="time">Within a year<br /> <input type="radio" value="Years" name="time">In a couple of years<br /> <br /><br /> <input type="submit" value="Submit"/> </form> </body> </html> |
thanks
