Ok I found what appears to be the problem....
I went back and cut out the majority of the page and it worked.. then i started pasting little parts of the page back in until i found the part that was causing the problem...
Here is the code around it... The part that is causing the problem is the php section inside the textarea.
The foreach ($filelines as $line) part.
Any idea why that would cause an error on page when i hit the next button?
<?php
switch ($_GET['TutorialNumber'])
{
case 1: $fp = fopen("C:\WebPages\TutorialOneQuestions.txt", "r");
$file_lines = file("C:\WebPages\TutorialOneLesson.txt");
break;
case 2: $fp = fopen("C:\WebPages\TutorialTwoQuestions.txt", "r");
$file_lines = file("C:\WebPages\TutorialTwoLesson.txt");
break;
};
$heading = fgets($fp, 100);
if (strcmp(trim($heading), "TUTORIAL_HEADER") == 0)
$heading = fgets($fp, 300);
echo $heading;
?>
</p>
<p align="center">
<textarea readonly = "readonly" rows="20" name="txtLesson" cols="93">
<?php
foreach($file_lines as $line) echo $line;
?>
</textarea></p>
<hr>