Help with PHP
#10

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 (namepassVALUES ($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
Its something like that, i'm not sure if this is right, check on www.******.com.br or w3schools about HTML and PHP scripting and your questions will be answered.


http://forum.sa-mp.com/showthread.ph...ighlight=MySQL

Check PHP part.
Reply


Messages In This Thread
Help with PHP - by Riddy - 19.05.2012, 21:29
Re: Help with PHP - by TheJayMan - 19.05.2012, 21:39
Re: Help with PHP - by Riddy - 19.05.2012, 21:46
Re: Help with PHP - by kikito - 19.05.2012, 21:49
Re: Help with PHP - by Riddy - 19.05.2012, 22:09
Re: Help with PHP - by Vince - 19.05.2012, 22:10
Re: Help with PHP - by Riddy - 19.05.2012, 22:14
Re: Help with PHP - by kikito - 19.05.2012, 22:18
Re: Help with PHP - by TheJayMan - 19.05.2012, 22:23
Re: Help with PHP - by Ricop522 - 19.05.2012, 22:34

Forum Jump:


Users browsing this thread: 2 Guest(s)