The
usually submits a form for no refreshes, and we do it using AJAX. Some time ago, I followed the boss. Another way of not refreshing a submit form is to use the IFRAME framework. Now put it out and share it with everyone.
First:
HTML page
PHP Page: form.php
<?php
//non-null authentication
if (Empty ($_post[' uname ')) | | empty ($_post[' pwd ']))
{
echo ' <script type= ' text/ JavaScript ">alert (" User name or password is blank! "); </script> ';
Exit;
}
Verify Password
if ($_post[' uname ']!= ' Jack ' | | $_post[' pwd ']!= ' 123456 ')
{
echo ' <script type= ' text/ JavaScript ">alert (" Incorrect username or password! "); </script> ';
Exit;
} else {
echo ' <script type= "Text/javascript" >alert ("Login succeeded!"); </script> ';
Exit;
}
The second type:
HTML page
The above is the entire content of this article, I hope that you learn PHP programming help.