A Guide to Online Forms
for Student Assignments

HTML forms are a convenient way to provide students with a format and annotated help for student assignments. Forms are in HTML and processing example is in ASP.  However PHP or other scripting language can be used as well to process the form.

Article

Sample Form (Use File SaveAs to make a local copy)

Sample code to process the form  (Must rename TailgateGenerate.asp to run)

Sample PHP code to process the form

Sample Lesson Plan Form with help in frames

Sample Precipitation Rate Calculator that creates an Excel spreadsheet

Sample Precipitation Rate Calculator that creates an Word Document

Sample code for Excel spreadsheet processing

Sample Header Code for ASP

Response.ContentType = "application/msexcel" 'excel example
Response.AddHeader "Content-Disposition", "attachment;filename=DUcalc.xls"

Sample Header Code for PHP

header("Content-type: application/msword"); //Word example
header("Content-Disposition: attachment; filename='".$Title.".doc' " );


where $Title is the title of the document.

Note: Header statements must be executed before the <body> tag.