You need to enclose your form elemets into <form> tag!
Give them name, like you entered in your <select name="ps"> tag, example:
and process your data in the yoursubmitfile.php
<form action="yoursubmitfile.php" method="post">
<input type="submit" name="record" value="Submit Attendence"/>
$ps = $_POST['ps']; // info about attendance
$query = "insert into [tablename] (id, ps) values ([id], $ps)";
// process query into database etc.