Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Przesylanie danych między formularzami
dareckiphp
post 10.01.2004, 23:06:57
Post #1





Grupa: Zarejestrowani
Postów: 107
Pomógł: 0
Dołączył: 10.07.2003

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


Jak dane wyświetlane w combo boxie przeslac dalej do nastepnego formularza?

[php:1:54d7f75c28]<form action="?gdzie=<? ......................; ?>" method="post"><table width="70%" tr><td width="39%" class="txt">Kondygnacja</td>
<td width="43%"><select name="id_kond" size="1">

<? while ($row = mysql_fetch_assoc($kondygnacja)) { ?>
<option value="<? print "$row[nazwa_kond]";?>"><? print "$row[nazwa_kond]";?><? } ?></select></td>
<td width="18%"><input type="submit" name="Submit" value="dalej"></td></tr>
</table>
</form>
[/php:1:54d7f75c28]
Go to the top of the page
+Quote Post
Cudi
post 10.01.2004, 23:25:49
Post #2


Administrator planeta/IRC


Grupa: Przyjaciele php.pl
Postów: 385
Pomógł: 0
Dołączył: 19.04.2003
Skąd: Zabrze

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


Input typu hidden:
[php:1:72684641a1]<input type="hidden" name="id_kond" value="<?php echo $_POST['id_kond'] ?>" />[/php:1:72684641a1]
lub w sesji.


--------------------
"Programmers are in a race with the Universe to create bigger and better idiot-proof programs, while the Universe is trying to create bigger and better idiots. So far the Universe is winning."
Cudi's devBlog
Go to the top of the page
+Quote Post

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: 26.06.2025 - 01:14