This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */ | |
/** | |
* 1. Change the default font family in all browsers (opinionated). | |
* 2. Correct the line height in all browsers. | |
* 3. Prevent adjustments of font size after orientation changes in | |
* IE on Windows Phone and in iOS. | |
*/ | |
/* Document |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getObjectURL(file) { | |
var url = null; | |
if (window.createObjectURL != undefined) { | |
url = window.createObjectURL(file) | |
} else if (window.URL != undefined) { | |
url = window.URL.createObjectURL(file) | |
} else if (window.webkitURL != undefined) { | |
url = window.webkitURL.createObjectURL(file) | |
} | |
return url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqli_query($link,"set NAMES 'UTF8'"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (isset($_POST['submit'])){ | |
if ($_POST['name'] == '') { | |
echo "<script>alert('非法输入!')</script>"; | |
}elseif ($_POST['pw'] == '') { | |
echo "<script>alert('非法输入!')</script>"; | |
}elseif ($_POST['repw'] == '') { | |
echo "<script>alert('非法输入!')</script>"; | |
}elseif ($_POST['pw'] == $_POST['repw']) { | |
$query = "insert into user (name,pw,role) values('{$_POST['name']}','{$_POST['pw']}','{$_POST['role']}')"; | |
$result=mysqli_query($link, $query); |
NewerOlder