Office Hours Signup

"Monday 3:00pm", 1=>"Monday 3:30pm", 2=>"Monday 4:00pm", 3=>"Monday 4:30pm", 4=>"Tuesday 2:00pm", 5=>"Tuesday 2:30pm", 6=>"Tuesday 3:00pm", 7=>"Tuesday 3:30pm", 8=>"Tuesday 4:00pm", 9=>"Tuesday 4:30pm"); // Read the currently registered $fp=fopen("data.txt", "r+"); $data = array();$i=0; while(!feof($fp)) { $line = trim(fgets($fp,1024)); if(!feof($fp)) { $temp = array($i => split(" ",$line)); $data = array_merge($data, $temp); $i++; } } fclose($fp) ; // Write the new people if ($user && isset($slot)) { $fp=fopen("data.txt", "w+"); for ($n=0; $n

Current slots:

"; if (strlen($data[$n][0]) == 0) print "

"; else print "

"; for ($m = 0; $m" . $data[$n][$m] . " \n"; } print ""; } ?>

Please select your slot below

Please input username
Please select time slot

If you would like to change your current slot signup, please email cs416@cs.virginia.edu.