Can anyone tell me why the code below is generating the following error message:
Parse error: parse error in f:\feast\ic\page.php(256) : eval()'d code on line 107
CODE:
------
<?php if(empty($s)) { ?>
<font size=2 face=Arial, Times,>
<h5>How much do you know about the WNBA? Test your hoop smarts and find out how you score!</h5>
<form name="f" action="page.php?id=3.1.14" method="POST">
<input type="hidden" name="id" value="3.1.14">
<input type="hidden" name="s" value="1">
<b>1. When was the WNBA formed?</b><p>
<input type="radio" name="f1" value="A 1996">1996<br>
<input type="radio" name="f1" value="B 1997">1997<br>
<input type="radio" name="f1" value="C 1998">1998<br>
<p>
<b>2. Who was the first player signed to the WNBA?</b><p>
<input type="radio" name="f2" value="A CC">Cynthia Cooper<br>
<input type="radio" name="f2" value="B SW">Sheryl Swoopes<br>
<input type="radio" name="f2" value="C LL">Lisa Leslie<br>
<p>
<b>3. How many teams are in the WNBA?</b><p>
<input type="radio" name="f3" value="A 16">16<br>
<input type="radio" name="f3" value="B 18">18<br>
<input type="radio" name="f3" value="C 25">25<br>
<p>
<b>4. What is the gender breakdown of the WNBA TV audience?</b><p>
<input type="radio" name="f4" value="A 70-30">70-30 female/male<br>
<input type="radio" name="f4" value="B 60-40">60-40 female/male<br>
<input type="radio" name="f4" value="C 50-50">50-50 female/male<br>
<p>
<b>5. Women’s basketball was first introduced in 1892 at which college?</b><p>
<input type="radio" name="f5" value="A Vassar">Vassar<br>
<input type="radio" name="f5" value="B Smith">Smith<br>
<input type="radio" name="f5" value="C Mt. Holyoke">Mt. Holyoke<br>
<p>
<CENTER>
<input type="image" src="images/submit.gif" width=70 height=51 border=0 name="submit" value="submit"><font size= -1 color=003399><br>Click submit to see the correct answers.</font>
</CENTER>
</form>
</font>
<?php
} else {
if(strlen($f1)==0 || strlen($f2)==0 || strlen($f3)==0 || strlen($f3)==0 || strlen($f5)==0)
{
?>
The form was not submitted because not all of the questions have been answered. Please click the "Back" button on your web browser and correct the submission. Thank you!<br>
<br>
<?php
} else {
if(strlen($f1)==0 || strlen($f2)==0 || strlen($f3)==0 || strlen($f3)==0 || strlen($f5)==0)
{
?>
The form was not submitted because not all of the questions have been answered. Please click the "Back" button on your web browser and correct the submission. Thank you!<br>
<br>
<?php } else {
//mail setup
$subject="QUIZ";
$m = sprintf("Quiz\n----------------------\n\n %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", stripslashes($f1), stripslashes($f2), stripslashes($f3), stripslashes($f4), stripslashes($f5));
//send mail message
mail("mmmm@nnn.com", $subject, " $m \n $f1 \n $f2 \n $f3 \n $f4 //\n $f5"
?>
<h4><font color=003399></font></h4>
<b>Read below to see the correct answers.</b>
<font face=Arial, Times size=3>
<p>1. The correct answer is <b>1996</b><br>
On April 24, 1996, The NBA Board of Governors approved the concept of the Women¹s Basketball Association. The first WNBA game was played on June 21, 1997.
<p>2. The correct answer is <b>Sheryl Swoopes <br>
</b> Sheryl Swoopes was the first player signed to the WNBA, but Cynthia Cooper and Lisa Leslie had their own impressive firsts. Cynthia was the league¹s first MVP and Lisa was the first WNBA player to capture all three MVP awards (regular season, All-Star and Championship) in one season.</p>
<p>3. The correct answer is <b>16. <br>
</b> Since its first season, the WNBA has expanded
from eight teams to 16. The 2002 season will see 176 women play professional basketball in 256 regular-season WNBA games.
</p>
<p>4. The correct answer is <b>50-50 female/male<br>
</b> The WNBA games also pull in a large percentage of non-adult television viewers.</p>
<p>5. The correct answer is <b>Smith College.<br>
</b> In 1892, gymnastics instructor Sendra Berenson Abbott adapted men’s basketball rules and introduced the game to female students at her school. By 1895, women’s basketball had caught on at other prominent universities including Vassar, Bryn Mawr and Wellesley.</p>
<?php
}
}
Parse error: parse error in f:\feast\ic\page.php(256) : eval()'d code on line 107
CODE:
------
<?php if(empty($s)) { ?>
<font size=2 face=Arial, Times,>
<h5>How much do you know about the WNBA? Test your hoop smarts and find out how you score!</h5>
<form name="f" action="page.php?id=3.1.14" method="POST">
<input type="hidden" name="id" value="3.1.14">
<input type="hidden" name="s" value="1">
<b>1. When was the WNBA formed?</b><p>
<input type="radio" name="f1" value="A 1996">1996<br>
<input type="radio" name="f1" value="B 1997">1997<br>
<input type="radio" name="f1" value="C 1998">1998<br>
<p>
<b>2. Who was the first player signed to the WNBA?</b><p>
<input type="radio" name="f2" value="A CC">Cynthia Cooper<br>
<input type="radio" name="f2" value="B SW">Sheryl Swoopes<br>
<input type="radio" name="f2" value="C LL">Lisa Leslie<br>
<p>
<b>3. How many teams are in the WNBA?</b><p>
<input type="radio" name="f3" value="A 16">16<br>
<input type="radio" name="f3" value="B 18">18<br>
<input type="radio" name="f3" value="C 25">25<br>
<p>
<b>4. What is the gender breakdown of the WNBA TV audience?</b><p>
<input type="radio" name="f4" value="A 70-30">70-30 female/male<br>
<input type="radio" name="f4" value="B 60-40">60-40 female/male<br>
<input type="radio" name="f4" value="C 50-50">50-50 female/male<br>
<p>
<b>5. Women’s basketball was first introduced in 1892 at which college?</b><p>
<input type="radio" name="f5" value="A Vassar">Vassar<br>
<input type="radio" name="f5" value="B Smith">Smith<br>
<input type="radio" name="f5" value="C Mt. Holyoke">Mt. Holyoke<br>
<p>
<CENTER>
<input type="image" src="images/submit.gif" width=70 height=51 border=0 name="submit" value="submit"><font size= -1 color=003399><br>Click submit to see the correct answers.</font>
</CENTER>
</form>
</font>
<?php
} else {
if(strlen($f1)==0 || strlen($f2)==0 || strlen($f3)==0 || strlen($f3)==0 || strlen($f5)==0)
{
?>
The form was not submitted because not all of the questions have been answered. Please click the "Back" button on your web browser and correct the submission. Thank you!<br>
<br>
<?php
} else {
if(strlen($f1)==0 || strlen($f2)==0 || strlen($f3)==0 || strlen($f3)==0 || strlen($f5)==0)
{
?>
The form was not submitted because not all of the questions have been answered. Please click the "Back" button on your web browser and correct the submission. Thank you!<br>
<br>
<?php } else {
//mail setup
$subject="QUIZ";
$m = sprintf("Quiz\n----------------------\n\n %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", stripslashes($f1), stripslashes($f2), stripslashes($f3), stripslashes($f4), stripslashes($f5));
//send mail message
mail("mmmm@nnn.com", $subject, " $m \n $f1 \n $f2 \n $f3 \n $f4 //\n $f5"
?>
<h4><font color=003399></font></h4>
<b>Read below to see the correct answers.</b>
<font face=Arial, Times size=3>
<p>1. The correct answer is <b>1996</b><br>
On April 24, 1996, The NBA Board of Governors approved the concept of the Women¹s Basketball Association. The first WNBA game was played on June 21, 1997.
<p>2. The correct answer is <b>Sheryl Swoopes <br>
</b> Sheryl Swoopes was the first player signed to the WNBA, but Cynthia Cooper and Lisa Leslie had their own impressive firsts. Cynthia was the league¹s first MVP and Lisa was the first WNBA player to capture all three MVP awards (regular season, All-Star and Championship) in one season.</p>
<p>3. The correct answer is <b>16. <br>
</b> Since its first season, the WNBA has expanded
from eight teams to 16. The 2002 season will see 176 women play professional basketball in 256 regular-season WNBA games.
</p>
<p>4. The correct answer is <b>50-50 female/male<br>
</b> The WNBA games also pull in a large percentage of non-adult television viewers.</p>
<p>5. The correct answer is <b>Smith College.<br>
</b> In 1892, gymnastics instructor Sendra Berenson Abbott adapted men’s basketball rules and introduced the game to female students at her school. By 1895, women’s basketball had caught on at other prominent universities including Vassar, Bryn Mawr and Wellesley.</p>
<?php
}
}