<!DOCTYPE html >
<html>
<head>
<meta charset=UTF-8>
<title>Insereaza Studenti</title>
<link href="stil.css" rel="stylesheet" type="text/css">
</head>

<body>
<div id="wrapper">
 
<div id="nav">
<?php
include "meniu.php";
?>
</div>
<div id=clear></div>
<div id="continut">
<h2>Formular modificare</h2>
<?php
$x=$_GET['idul'];
$sql="SELECT * FROM studenti WHERE id='$x'";
include "conect.php";
$rez=mysqli_query($conexiune,$sql);
$row=mysqli_fetch_array($rez);

?>


<form action=update.php method=post>
<label>Nume</label><input type=text name=nu value= <?php echo $row['nume']; ?> required=required><br>
<label>Prenume</label><input type=text name=pre value= <?php echo $row['prenume'];?> required=required><br>
<label>Semigrupa</label><input type=text name=sgr value= <?php echo $row['sgrupa']; ?> required=required><br>
<label>Mail</label><input type=email name=em value= <?php echo $row['email']; ?> required=required><br>
<label>Data n</label><input type=date name=dn value= <?php echo $row['data_n']; ?> required=required><br>
<input type=hidden name=idul1 value= <?php echo $x; ?>>
<input type=submit value=Modifica>
</div>

</div><!--aici se termina wrapperul-->


</body></html>