/    Sign up×
Community /Pin to ProfileBookmark

Mindzai are you there – Teacher Need Help On processing a Survey Form

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[/url].

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.

here is the form code:
============================

<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″>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</td>
<td><span class=”myformcolor2″>
<input type=”checkbox” name=”subjectstaught[]” value=”Probability and Statistics” />
Probability and Statistics </span></td>
</tr>

</table>
=========================

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.

All my other form data will go in this area:
===================

$message = <<<EOF
<html>
<link href=”http://www.mathtech.org/stylesheet.css” rel=”stylesheet” type=”text/css” />
<body>

</body>
</html>

EOF;
=======================

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[/url]. so you cansee the output. And YES, to all the masters, I know there are weaknesses, that is why I am reaching out to you.

We do good work and are all teachers ourselves but are not talented at php programming.

Sincerely,
G.L.

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @libman spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...