First, your English is good. Second, there are a lot of things I would recommend working on before being concerned if it posts or not.
mysql vs mysqli
mysql extension depreciation warning
-
mysql extensions have been depreciated, so you will want to use mysqli. The benefit of working with PHP is that the documentation is very thorough. Check out this link to get familiar with the improved extensions.
mysql_connect
changes to
mysqli_connect
input type=”password”
-
…provide a way for the user to
securely enter a password. The element is presented as a one-line
plain text editor control in which the text is obscured so that it
cannot be read, usually by replacing each character with a symbol such
as the asterisk (“*”) or a dot (“•”). This character will vary
depending on the user agent and OS.
–https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password
Here’s a handy link to get familiar with different input types
if…submit
-
isset — Determine if a variable is set and is not NULL
–http://php.net/manual/en/function.isset.phpif($submit){
changes to
if(isset($_POST['submit'])){ <your code here> }
redirect upon submit
-
It looks like you might want to redirect the user to a different page to view the data after submission. Below is an example of how to do that.
# after your query and insertion into table $profile_url="http://" . $_SERVER['HTTP_HOST'] . '/profile.php'; $header('Location: ' . $profile_url);
0
solved php form doesn’t post on the page