Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Pomoc z POST
Forum PHP.pl > Forum > PHP
arctikarus
  1. if($_GET[id] == 3)
  2. {
  3. print "<form action = 'index.php' method = post>";
  4. while ($wiersz = mysql_fetch_row($idzapytania)){
  5. print "<input type='radio' name='pole' value=";
  6. print $wiersz[0];
  7. print ">";
  8. print $wiersz[0];
  9. }
  10. print " <input type=submit value='Walcz!'>";
  11. print "</form>";
  12. }

To mój kod. Niewiem czemu ale wysyła metodą GET a nie POST jak jest zaznaczone w <FORM>
darko
Zamień na:
  1. if($_GET[id] == 3)
  2. {
  3. print "<form action=\"index.php\" method=\"post\">";
  4. while ($wiersz = mysql_fetch_row($idzapytania)){
  5. print "<input type='radio' name='pole' value=\"";
  6. print $wiersz[0];
  7. print "\" />";
  8. print $wiersz[0];
  9. }
  10. print " <input type=\"submit\" value=\"Walcz!\" />";
  11. print "</form>";
  12. }


a tak questionmark.gif
arctikarus
nic nie pomogło
Kszyhuu
  1. if($_GET[id] == 3)
  2. {
  3. print '<form method="post" action="index.php">';
  4. while ($wiersz = mysql_fetch_row($idzapytania)){
  5. print '<input type="radio" name="pole" value=';
  6. print $wiersz[0];
  7. print '>';
  8. print $wiersz[0];
  9. }
  10. print ' <input type="submit" value="Walcz!">';
  11. print '</form>';
  12. }


Tak musi działać.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.