Posted by:
stevenmartin99
(---.b-ras1.blp.dublin.eircom.net)
this would be on your page with the form
------------------------------------------------------------------------------------
<form action="processform.php" METHOD="POST" enctype="multipart/form-data" >
<input name="username" type="text" size="20"/>
<input name="password" type="password" size="10"/>
<INPUT class="button" name="submit" TYPE="submit" value="Submit">
<INPUT class="boldit" name="reset" TYPE="reset" value="Reset">
----------------------------------------------------------------------------
then you need a php file that will receive this and store it into the database
---------------------------------------------------------------------------------
<?php
{
$dbhost = 'localhost';
$dbuser = 'YOURUSERNAME';
mysql_connect($dbhost,$dbuser);
$dbname = 'YOURDATABASENAME';
@mysql_select_db($dbname) or die( "Unable to select database"
;
$username=$_POST['username'];
$password=$_POST['password'];
$query = "INSERT INTO YOURTABLENAME VALUES ('','$username','$password'')";
mysql_query($query);
mysql_close() ;
}
?>
u need to fill in your mysql username which should be 'root'
u need to fill in your database name
and also the tablename where the info is stored.- the table should have three colmns- id,username,password