<?php
$host = $_POST['host'];
$user = $_POST['user'];
$pass = $_POST['pass'];
$mysql = mysql_connect("$host", "$user", "$pass");
if(!$mysql){
die('Nepavyko prisijungti: ' . mysql_error());
}else{
$_POST['vardas'] = str_replace("\'", "", $_POST['vardas']);
$result = dbquery("INSERT INTO lenta (laukelis_vardas) VALUES ('".$_POST['vardas']."')");
}
?>