ok i first tried this.....

Code:
<form action="insert.php" method="post">

UserName: <input type="text" name="username"><br>
Password: <input type="text" name="password"><br>

<input type="Submit">
</form>
and in insert.php....

PHP Code:
<?


$database="users";

mysql_connect() or die ("Problem connecting to DataBase");

@mysql_select_db($database) or die( "Unable to select database");

$query = "INSERT INTO info VALUES ('$username','$password')"; 
mysql_query($query);

mysql_close();

?>
i've been looking at these global varible things but they still not making sence to me can anyone tell em how to solve this? all iw ant to do is add data to mysql