phfilly 26 Junior Poster

Is there another form on the page with the same field name/ids?

phfilly 26 Junior Poster

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');

phfilly 26 Junior Poster

This is also quite nice

phfilly 26 Junior Poster

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.

phfilly 26 Junior Poster

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...

phfilly 26 Junior Poster

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

phfilly 26 Junior Poster

The french have some weird bursts of energy in games...Maybe they'll surprise you but I think NZ will take it

phfilly 26 Junior Poster

Can you maybe post the html file?