I created a form where someone can add their name and a comment and then submit it to my database.
here's the code of the form
PHP
$x=$_GET['st'];$result=$log->qry("Select * from students where id=".$x);$row=mysql_fetch_assoc($result);echo$row['name'].' - '.$row['surname'];?>echo$row['id'];?>">
and here's the code of the form's action
PHP
require('logmein.php');$log=newlogmein();if($log->logincheck($_SESSION['loggedin'],"logon","password","username")==false){//elenxos egkirotitas sindesis tou xristi sto sistima.An oxi epistrofi stin index me plirofories tou lathous$log->redirect($log->getHost());}if($_SESSION['userlevel']!=0){$log->redirect($log->getHost()."?result=3");}$student=$_POST['st'];$comm=$_POST['comm'];$comments=$_POST['comments'];$log->qry("Insert into comments...