<?php if(isset($_POST['course'])){	echo "<HEAD><TITLE>".$_POST['title']."</TITLE>\n";	echo "<Meta author=".$_POST['instructor']."></HEAD>\n<BODY>\n";	echo "<h1>".$_POST['title']."</h1>";	echo $_POST['course']." taught by ".$_POST['instructor']."<br>";echo $_POST['email'];	echo "<FORM METHOD=POST ACTION='mailto:".$_POST['email']."' ENCTYPE='text/plain' subject='".$_POST['title']."'>\n";	echo "<p>First name: <input type=text name='first'>  ";	echo "Last name: <input type=text name='last'>  ";	echo "WKU id: <input type=text name='wkuid'><p>";	echo $_POST['instructions']."<p>"; 	for($i=1;$i<5;$i++){		if(strlen($_POST['q'.$i])>0){			echo "<b>Question $i:</b> ".$_POST['q'.$i]."<br>";			echo "<textarea cols=80 rows=5 name='".$_POST['q'.$i]."'></textarea><p>";		}	}	echo "<INPUT TYPE=Checkbox NAME='honor'>  I received no help from anyone on this assignment."; 	echo "<input type='submit' value='Send'>";	echo "<p><font size=-1>Note that this information is being sent by email.  If you are using a ".		"computer where you do not have an installed email client, this may not work properly.</font>";	echo "</form></body></html>";}else{?><HTML><HEAD><TITLE>JiTT Page Maker</TITLE><Meta author='Scott Bonham'></HEAD><BODY><H1>JiTT Page Maker</h1>This page will easily produce an html page for your students to respond to JiTT warmup questions.  Responses will be emailed to you.  Your students will need to be at a computer where they have an installed email client.  (I.e., student computer labs might be a problem.)<FORM METHOD=POST name='generator' Action='' ><table><tr><td>Course name: </td><td><input type=text name='course'></td></tr><tr><td>Instructor name: </td><td><input type=text name='instructor'></td></tr><tr><td>Instructor email: </td><td><input type=text name='email'></td></tr><tr><td>Quiz title: </td><td><input type=text name='title'></td></tr></table>Instructions:<br><textarea cols=80 rows=4 name='instructions'></textarea><p>Question 1:<textarea cols=60 rows=6 name='q1'></textarea><p>Question 2:<textarea cols=60 rows=6 name='q2'></textarea><p>Question 3:<textarea cols=60 rows=6 name='q3'></textarea><p>Question 4:<textarea cols=60 rows=6 name='q4'></textarea><p><input type=submit name='submit' value='Generate JiTT'></form></body></html><? } ?>