ok i first tried this.....
and in insert.php....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>
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 mysqlPHP 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();
?>




Reply With Quote