Is there another form on the page with the same field name/ids?
Is there another form on the page with the same field name/ids?
Do you get any php/db/js error? You can switch it on by adding this to the php file you're using -> error_reporting(E_ALL); ini_set('display_errors', '0');
This link will help with the srand function http://www.cplusplus.com/reference/clibrary/cstdlib/srand/. The site helps with some basic c++ theory and functions.
Is the script tag in the <head> tag and was your form tag in your <body> tag? It doesn't seem so? That would be my guess...
I would write it like this just an example
$userName = $_POST["username"];
$pass = $_POST["password"];
$register = "INSERT INTO mytable(Username,Password) VALUES ('$userName','$pass')";
if(!mysql_query($register)){
die ('Error could not add value' . mysql_error());
}
Check maybe with a mysql_error() tag at the end
The french have some weird bursts of energy in games...Maybe they'll surprise you but I think NZ will take it
Can you maybe post the html file?