Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][PHP]POST w plikach
Chelo
post 14.01.2010, 15:18:41
Post #1





Grupa: Zarejestrowani
Postów: 178
Pomógł: 8
Dołączył: 19.03.2007

Ostrzeżenie: (0%)
-----


Gdzie jest tu błąd?:

  1. echo '<form method="POST" action="mocarny0.php?mode=odswiez&kat=1"><b>acc:</b><Br> <b>Login:</b><input type="text" name="loginforum" size="5"> <b>Hasło:</b><input type="text" name="hasloforum" size="5"> <b>p: </b><input type="text" name="proxy3"><br>
  2. <br>
  3. <b>NR: </b> <input type="text" size="5" name="link1">
  4. <b>NR: </b> <input type="text" size="5" name="link2">
  5. <br><br><input type="submit" value="za"><br><br><br><Br></form>';


  1. @include('pocz' . '.php');
  2. @include('kon' . '.php');
  3.  
  4.  
  5. $userid1 = $_SESSION['user_id'];
  6. $xlink1 = strip_tags(stripslashes($_POST['link1']));
  7. $xlink2 = strip_tags(stripslashes($_POST['link2']));
  8. $xlogin = strip_tags($_POST['loginforum']);
  9. $xhaslo = strip_tags($_POST['hasloforum']);
  10. $vial2 = strip_tags($_POST['vial']);
  11. $proxy2 = strip_tags($_POST['proxy3']);
  12. $w150 = $_SESSION['nrwx3'];
  13. $numer3 = intval($_GET['kat']);
  14.  
  15. if($xlink1 && $xlink2 && $xlogin && $xhaslo && $numer3 == 1)
  16. {
  17.  
  18. if($_SESSION['zwanzig0'] !== 1)
  19. {
  20. $sql2 = "INSERT INTO ap (kto, link1, link2, login, haslo, sforum, bwnr, proxy) value
  21. ($userid1, $xlink1, $xlink2, '$xlogin', '$xhaslo', $numer3, $xlink1, '$proxy2')";
  22. $result2 = mysql_query($sql2);
  23. if($result2)
  24. {
  25. $_SESSION['zwanzig0'] = 1;
  26. }
  27. $_SESSION['l2'] = $xlogin;
  28. $_SESSION['h2'] = $xhaslo;
  29. $_SESSION['p2'] = $proxy2;
  30. $_SESSION['li1'] = $xlink1;
  31. $_SESSION['li2'] = $xlink2;
  32.  
  33. }
  34.  
  35. }


Skrypt nie wysyła zapytania do sql.

Proszę o pomoc
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 19.06.2025 - 16:47