It looks like the problem is that you're not closing the form properly: echo "</form>\n"; not echo "<form>\n"; So the browser is probably getting confused on where to send the form submission. -Rob