Hi All,
I am very new to php and know just enough to be dangerous and I am smart enough to know that.
I am a mathematics teacher and teach seminars on using mathematics software. I am developing a survey at [url]http://www.mathtech.org/survey/index_test.php
I got some code and I have managed to produce a capcha as well as capturing the data and printing out the results of the form so the survey taker can see what he or she has entered.
I want to send out the data to an html email which I can do except for the checkbox data which has been sent to an array.
I am more than willing to pay someone to TEACH ME how to better develop my code and send out the checkbox data to an html email.
<span class=”myform”>What subject(s) do you teach?
</span></p>
<table width=”800″ border=”0″ cellspacing=”0″ cellpadding=”4″>
<tr>
<td><span class=”myformcolor2″>
<input type=”checkbox” name=”subjectstaught[]” value=”Middle School Math” />
Middle School Math</span></td>
<td width=”25″> </td>
<td><span class=”myformcolor2″>
<input type=”checkbox” name=”subjectstaught[]” value=”Prealgebra” />
Prealgebra</span></td>
</tr>
<tr>
<td><span class=”myformcolor2″>
<input type=”checkbox” name=”subjectstaught[]” value=”Algebra 1″ />
Algebra 1</span></td>
<td> </td>
<td><span class=”myformcolor2″>
<input type=”checkbox” name=”subjectstaught[]” value=”Geometry” />
Geometry</span></td>
</tr>
<tr>
<td><span class=”myformcolor2″>
<input type=”checkbox” name=”subjectstaught[]” value=”Algebra 2″ />
Algebra 2</span></td>
<td> </td>
<td><span class=”myformcolor2″>
<input type=”checkbox” name=”subjectstaught[]” value=”Advanced Algebra (sometimes called Advanced Math Concepts)” />
Advanced Algebra (sometimes called Advanced Math Concepts)</span></td>
</tr>
<tr>
<td><span class=”myformcolor2″>
<input type=”checkbox” name=”subjectstaught[]” value=”Precalculus” />
Precalculus</span></td>
<td> </td>
<td><span class=”myformcolor2″>
<input type=”checkbox” name=”subjectstaught[]” value=”Calculus” />
Calculus</span></td>
</tr>
<tr>
<td><span class=”myformcolor2″>
<input type=”checkbox” name=”subjectstaught[]” value=”AP Calculus” />
AP Calculus</span></td>
<td> </td>
<td><span class=”myformcolor2″>
<input type=”checkbox” name=”subjectstaught[]” value=”Probability and Statistics” />
Probability and Statistics </span></td>
</tr>
I need to know how to get this checkbox data to an html email. I have NO problems with all other form data but I don’t know how to extract this data from the array.
$message = <<<EOF
<html>
<link href=”
<body>
</body>
</html>
I know variables can be set like $email for the form value and so on and so forth and the variable $email can go into the above message area. But I have no clue how to get the array data printed on separate lines.
As I said I would be willing to pay someone to make this survey secure and help me with this last step. BUT I want to use my code bit make it more secure.
Please test the page at [url]http://www.mathtech.org/survey/index_test.php
We do good work and are all teachers ourselves but are not talented at php programming.
Sincerely,
G.L.