Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Form
kicaj
post
Post #1





Grupa: Zarejestrowani
Postów: 1 640
Pomógł: 28
Dołączył: 13.02.2003
Skąd: Międzyrzecz/Poznań

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


Kod
<iframe src="shoutbox.php" name="shoutbox" frameborder="0" width="165" height="200"></iframe>

<form method="post" action="shoutbox.php" target="shoutbox">

<input type="text" name="shout"><br>

<input type="image" src="img/<? echo $styl; ?>/przycisk_ok.gif" name="nshout" style="border: 0"><br>

[ <a href="shoutbox.php" target="shoutbox">od&para;wież</a> ]

</form>


Ten formularz przesyla wartosc do ramki...
Ale w polu "shout" zostaje ta wartosc! Jak zrobic zeby po wyslaniu czyscilo formularz...
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
HaRy
post
Post #2





Grupa: Zarejestrowani
Postów: 152
Pomógł: 0
Dołączył: 15.05.2002
Skąd: Łódź

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


ku potomnosci:

Kod
<script>

function send(form) {

form.submit();  

form.shout.value=form.shout_tmp.value;

form.shout_tmp.value = "";

  return true

  }

  </script>

  

  <iframe src="shoutbox.php" name="shoutbox" frameborder="0" width="165" height="200"></iframe>

  <form method="post" action="shoutbox.php" target="shoutbox" onSubmit="return send(this)">

  <input type="text" name="shout_tmp"><br>

  <input type="hidden" name="shout" value="">

  <input type="image" src="img//przycisk_ok.gif" name="nshout" style="border: 0"><br>

  [ <a href="shoutbox.php" target="shoutbox">od&para;wież</a> ]

  </form>
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 26.12.2025 - 02:29