19.05.2012, 22:34
PHP код:
if(isset("Submit")) {
$Username = $_POST['Username']; // Setting the user value
$Pass = $_POST['Password']; // Setting the user value
if($Username == "/" || $Username == "\" || $Username == "_") {
echo "invalid"; exit;
}
mysql_query("INSERT INTO table (name, pass) VALUES ($Username, $Pass));
}
// Form with html
<form method = "POST" action = "index.php">
Username: <input type='text' name='Username' /><br>
Password: <input type='text' name='Password' /><br>
<input type = "submit" name = "Submit" /> <br />
</form>
http://forum.sa-mp.com/showthread.ph...ighlight=MySQL
Check PHP part.