Can someone please take a look at this code and tell me why the mail() is not working.
THX!
#!#TITLE
Take Action
#!#JS
#!#BODY
?>
<font size=2 face=Arial>
<h5>How much do you know about the status of women and girls? Test your
knowledge and take our facts about Women and Girls Quiz! Just take a
few minutes to complete the following 10 questions.</h5>
<form name="f" action="<?php echo $PHP_SELF."?id=4.5"; ?>" method="post">
<input type="hidden" name="s" value="1">
<b>Please enter your email address:</b>
<input type=text name="qa0"><p>
<b>1. In 1997, ____ of households were headed by women?</b><p>
<input type="radio" name="qa1" value="A 18%">18%<br>
<input type="radio" name="qa1" value="B 25%">25%<br>
<input type="radio" name="qa1" value="C 30%">30%<br>
<input type="radio" name="qa1" value="D 46%">46%<br>
<input type="radio" name="qa1" value="E 51%">51%<br><p>
<b>2. In 1999, women hold ____ of the seats in the 535 member 106th Congress.</b><p>
<input type="radio" name="qa2" value="A 9%">9%<br>
<input type="radio" name="qa2" value="B 13%">13%<br>
<input type="radio" name="qa2" value="C 26%">26%<br>
<input type="radio" name="qa2" value="D 51%">51%<br>
<input type="radio" name="qa2" value="E 65%">65%<p>
<b>3. In 1992 and 1994, ____ of women registered to vote actually voted in the national elections. </b><p>
<input type="radio" name="qa3" value="A 29%">29%<br>
<input type="radio" name="qa3" value="B 41%">41%<br>
<input type="radio" name="qa3" value="C 62%">62%<br>
<input type="radio" name="qa3" value="D 80%">80%<br>
<input type="radio" name="qa3" value="E 95%">95%<p>
<b>4. In 1997, ____ of all women between the ages of 25 and 54 were in the labor force.</b><p>
<input type="radio" name="qa4" value="A 33%">33%<br>
<input type="radio" name="qa4" value="B 45%">45%<br>
<input type="radio" name="qa4" value="C 50%">50%<br>
<input type="radio" name="qa4" value="D 62%">62%<br>
<input type="radio" name="qa4" value="E 74%">74%<br><p>
<b>5. In 1997, women represented approximately ____ of lawyers and doctors and approximately ____ of engineers and fortune 500 corporate officers. </b><p>
<input type="radio" name="qa5" value="A 30%, 10%">30%,10%<br>
<input type="radio" name="qa5" value="B 45%, 15%">45%,15%<br>
<input type="radio" name="qa5" value="C 50%, 25%">50%,25%<br>
<input type="radio" name="qa5" value="D 62%, 38%">62%,38%<br>
<input type="radio" name="qa5" value="E 74%, 51%">74%,51%<br>
<p>
<b>6.In 1997, among year-round fulltime workers, women’s weekly earnings were ____ of men’s </b><p>
<input type="radio" name="qa6" value="A 55%">55%<br>
<input type="radio" name="qa6" value="B 65%">65%<br>
<input type="radio" name="qa6" value="C 75%">75%<br>
<input type="radio" name="qa6" value="D 85%">85%<br>
<input type="radio" name="qa6" value="E 95%">95%<p>
<b>7. In 1997, women and children (under 18) represented ____ of the total number of people living in poverty </b><p>
<input type="radio" name="qa7" value="A 33%">33%<br>
<input type="radio" name="qa7" value="B 51%">51%<br>
<input type="radio" name="qa7" value="C 63%">63%<br>
<input type="radio" name="qa7" value="D 75%">75%<br>
<input type="radio" name="qa7" value="E 80%">80%<p>
<b>8. In 1995, about one in every ____ American girls between the ages of 15 and 19 became pregnant. </b><p>
<input type="radio" name="qa8" value="A 5">5<br>
<input type="radio" name="qa8" value="B 10">10<br>
<input type="radio" name="qa8" value="C 15">15<br>
<input type="radio" name="qa8" value="D 35">35<br>
<input type="radio" name="qa8" value="E 60">60<p>
<b>9. Approximately ____ of high school girls participate in at least one school-sponsored sport. </b><p>
<input type="radio" name="qa9" value="A 15%">15%<br>
<input type="radio" name="qa9" value="B 27%">27%<br>
<input type="radio" name="qa9" value="C 42%">42%<br>
<input type="radio" name="qa9" value="D 68%">68%<br>
<input type="radio" name="qa9" value="E 82%">82%<p>
<b>10. In 1960, 38 percent of girls who graduated from high school enrolled in college the following fall. In 1996 ____ of girls who graduated from high school enrolled in college the following fall </b><p>
<input type="radio" name="qa10" value="A 32%">32%<br>
<input type="radio" name="qa10" value="B 49%">49%<br>
<input type="radio" name="qa10" value="C 56%">56%<br>
<input type="radio" name="qa10" value="D 70%">70%<br>
<input type="radio" name="qa10" value="E 84%">84%<p>
<CENTER>
<input type="image" src="images/submit.gif" width=70 height=51 border=0>
</CENTER>
</fORM>
</font>
<?php
if(!isset($qa)){
$qa = "";
} else {
if(strlen($qa2)==0 || strlen($qa3)==0 || strlen($qa4)==0) {
?>
<font face=Verdana, Arial, Helvetica, sans-serif size=-1>The quiz was not submitted because not all of the questions were answered. Please click the "Back" button on your web browser and correct the submission. Thank you!<br>
<br>
<?php } else {
$subject = "Quiz";
$m = sprintf ("Quiz\n----------------------\n\n %s\nPlease enter your email address:%s\nIn 1997, ____ of households were headed by women %s\nIn 1999, women hold ____ of the seats in the 535 member 106th Congress %s\nIn 1992 and 1994, ____ of women registered to vote actually voted in the national elections. %s\nIn 1997, ____ of all women between the ages of 25 and 54 were in the labor force %s\nIn 1997, women represented approximately ____ of lawyers and doctors and approximately ____ of engineers and fortune 500 corporate officers %s\nIn 1997, among year-round fulltime workers, women’s weekly earnings were ____ of men’s %s\nIn 1997, women and children (under 18) represented ____ of the total number of people living in poverty %s\nIn 1995, about one in every ____ American girls between the ages of 15 and 19 became pregnant %s\nApproximately ____ of high school girls participate in at least one school-sponsored sport %s\nIn 1960, 38 percent of girls who graduated from high school enrolled in college the following fall. In 1996 ____ of girls who graduated from high school enrolled in college the following fall", stripslashes($qa0), stripslashes($qa1), stripslashes($qa2), stripslashes($qa3), stripslashes($qa4), stripslashes($qa5), stripslashes($qa6), stripslashes($qa7), stripslashes($qa8), stripslashes($qa9), stripslashes($qa10));
mail("mlluberes@hotmail.com", $subject, $m, "From:$qa0"
;
}
?>
<font face=Verdana, Arial, Helvetica, sans-serif size=-1>Your submission has been successfully sent. Thank you!
<?php } ?>
THX!
#!#TITLE
Take Action
#!#JS
#!#BODY
?>
<font size=2 face=Arial>
<h5>How much do you know about the status of women and girls? Test your
knowledge and take our facts about Women and Girls Quiz! Just take a
few minutes to complete the following 10 questions.</h5>
<form name="f" action="<?php echo $PHP_SELF."?id=4.5"; ?>" method="post">
<input type="hidden" name="s" value="1">
<b>Please enter your email address:</b>
<input type=text name="qa0"><p>
<b>1. In 1997, ____ of households were headed by women?</b><p>
<input type="radio" name="qa1" value="A 18%">18%<br>
<input type="radio" name="qa1" value="B 25%">25%<br>
<input type="radio" name="qa1" value="C 30%">30%<br>
<input type="radio" name="qa1" value="D 46%">46%<br>
<input type="radio" name="qa1" value="E 51%">51%<br><p>
<b>2. In 1999, women hold ____ of the seats in the 535 member 106th Congress.</b><p>
<input type="radio" name="qa2" value="A 9%">9%<br>
<input type="radio" name="qa2" value="B 13%">13%<br>
<input type="radio" name="qa2" value="C 26%">26%<br>
<input type="radio" name="qa2" value="D 51%">51%<br>
<input type="radio" name="qa2" value="E 65%">65%<p>
<b>3. In 1992 and 1994, ____ of women registered to vote actually voted in the national elections. </b><p>
<input type="radio" name="qa3" value="A 29%">29%<br>
<input type="radio" name="qa3" value="B 41%">41%<br>
<input type="radio" name="qa3" value="C 62%">62%<br>
<input type="radio" name="qa3" value="D 80%">80%<br>
<input type="radio" name="qa3" value="E 95%">95%<p>
<b>4. In 1997, ____ of all women between the ages of 25 and 54 were in the labor force.</b><p>
<input type="radio" name="qa4" value="A 33%">33%<br>
<input type="radio" name="qa4" value="B 45%">45%<br>
<input type="radio" name="qa4" value="C 50%">50%<br>
<input type="radio" name="qa4" value="D 62%">62%<br>
<input type="radio" name="qa4" value="E 74%">74%<br><p>
<b>5. In 1997, women represented approximately ____ of lawyers and doctors and approximately ____ of engineers and fortune 500 corporate officers. </b><p>
<input type="radio" name="qa5" value="A 30%, 10%">30%,10%<br>
<input type="radio" name="qa5" value="B 45%, 15%">45%,15%<br>
<input type="radio" name="qa5" value="C 50%, 25%">50%,25%<br>
<input type="radio" name="qa5" value="D 62%, 38%">62%,38%<br>
<input type="radio" name="qa5" value="E 74%, 51%">74%,51%<br>
<p>
<b>6.In 1997, among year-round fulltime workers, women’s weekly earnings were ____ of men’s </b><p>
<input type="radio" name="qa6" value="A 55%">55%<br>
<input type="radio" name="qa6" value="B 65%">65%<br>
<input type="radio" name="qa6" value="C 75%">75%<br>
<input type="radio" name="qa6" value="D 85%">85%<br>
<input type="radio" name="qa6" value="E 95%">95%<p>
<b>7. In 1997, women and children (under 18) represented ____ of the total number of people living in poverty </b><p>
<input type="radio" name="qa7" value="A 33%">33%<br>
<input type="radio" name="qa7" value="B 51%">51%<br>
<input type="radio" name="qa7" value="C 63%">63%<br>
<input type="radio" name="qa7" value="D 75%">75%<br>
<input type="radio" name="qa7" value="E 80%">80%<p>
<b>8. In 1995, about one in every ____ American girls between the ages of 15 and 19 became pregnant. </b><p>
<input type="radio" name="qa8" value="A 5">5<br>
<input type="radio" name="qa8" value="B 10">10<br>
<input type="radio" name="qa8" value="C 15">15<br>
<input type="radio" name="qa8" value="D 35">35<br>
<input type="radio" name="qa8" value="E 60">60<p>
<b>9. Approximately ____ of high school girls participate in at least one school-sponsored sport. </b><p>
<input type="radio" name="qa9" value="A 15%">15%<br>
<input type="radio" name="qa9" value="B 27%">27%<br>
<input type="radio" name="qa9" value="C 42%">42%<br>
<input type="radio" name="qa9" value="D 68%">68%<br>
<input type="radio" name="qa9" value="E 82%">82%<p>
<b>10. In 1960, 38 percent of girls who graduated from high school enrolled in college the following fall. In 1996 ____ of girls who graduated from high school enrolled in college the following fall </b><p>
<input type="radio" name="qa10" value="A 32%">32%<br>
<input type="radio" name="qa10" value="B 49%">49%<br>
<input type="radio" name="qa10" value="C 56%">56%<br>
<input type="radio" name="qa10" value="D 70%">70%<br>
<input type="radio" name="qa10" value="E 84%">84%<p>
<CENTER>
<input type="image" src="images/submit.gif" width=70 height=51 border=0>
</CENTER>
</fORM>
</font>
<?php
if(!isset($qa)){
$qa = "";
} else {
if(strlen($qa2)==0 || strlen($qa3)==0 || strlen($qa4)==0) {
?>
<font face=Verdana, Arial, Helvetica, sans-serif size=-1>The quiz was not submitted because not all of the questions were answered. Please click the "Back" button on your web browser and correct the submission. Thank you!<br>
<br>
<?php } else {
$subject = "Quiz";
$m = sprintf ("Quiz\n----------------------\n\n %s\nPlease enter your email address:%s\nIn 1997, ____ of households were headed by women %s\nIn 1999, women hold ____ of the seats in the 535 member 106th Congress %s\nIn 1992 and 1994, ____ of women registered to vote actually voted in the national elections. %s\nIn 1997, ____ of all women between the ages of 25 and 54 were in the labor force %s\nIn 1997, women represented approximately ____ of lawyers and doctors and approximately ____ of engineers and fortune 500 corporate officers %s\nIn 1997, among year-round fulltime workers, women’s weekly earnings were ____ of men’s %s\nIn 1997, women and children (under 18) represented ____ of the total number of people living in poverty %s\nIn 1995, about one in every ____ American girls between the ages of 15 and 19 became pregnant %s\nApproximately ____ of high school girls participate in at least one school-sponsored sport %s\nIn 1960, 38 percent of girls who graduated from high school enrolled in college the following fall. In 1996 ____ of girls who graduated from high school enrolled in college the following fall", stripslashes($qa0), stripslashes($qa1), stripslashes($qa2), stripslashes($qa3), stripslashes($qa4), stripslashes($qa5), stripslashes($qa6), stripslashes($qa7), stripslashes($qa8), stripslashes($qa9), stripslashes($qa10));
mail("mlluberes@hotmail.com", $subject, $m, "From:$qa0"
}
?>
<font face=Verdana, Arial, Helvetica, sans-serif size=-1>Your submission has been successfully sent. Thank you!
<?php } ?>