I have my page setup with selects populated from a mySQL db to allow the user to select an instructor, course, day, time, room, and max students. Once all have been selected, 2 submit buttons load, 1 allowing the user to submit the data to the db inserting the information into the class table, and the other one resetting the page, basically setting all the selects to the first option(which is something like "Select Instructor") and setting all of the ___selected=0. I've tried many different ways to do this but non of them seemed to have any effect on the page. Also, my submit does not add the tuple to the table, and I'm not sure why that is either. Thanks for any help in advance, and sorry for the ugly format. [code]<?php .... .... .... if(($instructorselected==1)&&($courseselected==1)&&($dayselected==1)&& ($timeselected==1)&&($roomselected==1)&&($maxselected==1)) { print "<input type=submit value='YES(submit)' onClick=addClass() /> or "; print "<input type=submit value='NO(reset)' onClick=resetPage() /> <br>"; } function resetPage(){ //$instructorselect=""; //$instructorssn = ""; //$coursenum = ""; //$dayletter = ""; //$timenum = ""; //$roomnum = ""; //$maxnum6 = ""; //print "<script LANGUAGE=\"Javascript\">instructorselect.reset()</SCRIPT>"; //print "<form method=POST action=$PHP_SELF>"; //print "\'Javascript:submit()\'"; }; function addClass(){ $sectionnum = mysql_query ("SELECT COUNT(*) FROM class WHERE course=$coursenum") or die(mysql_error()); mysql_query ("INSERT INTO class VALUES ('$sectionnum','$coursenum','$dayletter','$timenum','$roomnum','$maxnum','$instructorssn')") or die(mysql_error()); }; ?>[/code]