<form method='post' action='index.php'>
<label>Vardas: <input type='text' maxlenght='50' name='vardas' /></label>
<input type='submit' name='submit120' value='Trinti' /></form>
if($_POST['submit120']){
$sql = mysql_query("DELETE FROM vardai WHERE user='".$_SESSION['vardas']."'");}
<?php
if($_POST['submit120']){
$sql = mysql_query("DELETE FROM vardai WHERE user='".$_GET['vardas']."'");
}
echo"
<form method='post' action='index.php'>
<label>Vardas: <input type='text' maxlenght='50' name='vardas' /></label>
<input type='submit' name='submit120' value='Trinti' /></form>
";
?>