Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z formularzem..., Po wyslaniu dancyh - biala strona...
Balon
post
Post #1





Grupa: Zarejestrowani
Postów: 422
Pomógł: 0
Dołączył: 14.12.2005
Skąd: Wałbrzych

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


Formularz:

  1. <form action="http://www.ppx.pl/balon_portfolio/admin/inc/edit_form.php?id=<?=$row["id"]?>" method=post>
  2. <table border=0 align=center class=foot>
  3. <tr><td>Tytul pracy:</td><td><input type=text name=title size=15 VALUE="<?=$row["title"]?>"></td></tr>
  4. <tr><td>Adres (tmp/...):</td><td><input type=text name=adres size=15 VALUE="<?=$row["adres"]?>"></td></tr>
  5. <tr><td>Dla kogo:</td><td><input type=text name=dla size=15 VALUE="<?=$row["dla"]?>"></td></tr>
  6. <tr><td>Sciezka do IMG:</td><td><input type=tex name=img size=15 VALUE="<?=$row["img"]?>"></td></tr>
  7. <tr><td></td><tr><td><input type=submit value=Edytuj></td></tr>
  8. </table>


Skrypt:

  1. <?
  2.  
  3. $id = $_GET['id']; 
  4. $title=$HTTP_POST_VARS['title'];
  5. $adres=$HTTP_POST_VARS['adres'];
  6. $dla=$HTTP_POST_VARS['dla'];
  7. $img=$HTTP_POST_VARS['img'];
  8.  
  9.  
  10. if (!$title || !$adres || !$dla || !$img || !$id)
  11. {
  12.  
  13. echo 'Wypelnij wszystkie pola!';
  14.  
  15. }
  16.  
  17. $title=addslashes($title);
  18. $adres=addslashes($adres);
  19. $dla=addslashes($dla);
  20. $img=addslashes($img);
  21.  
  22.  
  23. mysql_connect ("localhost","soonhost_balon","haselko");
  24.  
  25.  
  26.  
  27. mysql_select_db('soonhost_folio');
  28.  
  29.  
  30. $zapytanie = "UPDATE prace
  31. set title = '$title',
  32. adres = '$adres',
  33. dla = '$dla',
  34. img = '$img',
  35. where id = $id";
  36.  
  37.  
  38. $wynik = mysql_query($zapytanie);
  39. if ($wynik)
  40. header("Location: http://www.ppx.pl/balon_portfolio/admin/index.php?co=edit"); 
  41. ?>


po nacisnieciu Edycja, pojawia sie pusta strona a dane sie nie zmieniaja... co robie zle?

pozdrawiam,
balon.


--------------------
Postura wielka i morda wredna, jestem Balon, kozak z osiedla !
bzdury.pl - Królestwo rozrywki
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 Aktualny czas: 20.08.2025 - 12:04