Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Dwa submit- jeden formularz
kamil881
post
Post #1





Grupa: Zarejestrowani
Postów: 55
Pomógł: 0
Dołączył: 21.09.2007
Skąd: Mielec

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


Witam,
Wiem, że problem przewijał się już na forum, ale mam tutaj konkretną budowę skryptu:
Otóż chcę zrobić, aby w jednym formularzu było zapisywanie i wypisywanie do newslettera naraz.

A to moje wypociny, ale niestety nie działają jak trzeba:
Kod
<form name="txtlist" action="./index.php" target="txtlist" method="get" onsubmit="javascript:window.open('','txtlist','width=300,height=150,toolbar=no,status=no,resizable=no')">
<table border="0" cellpadding="4" cellspacing="0" bgcolor="#efefef" style="border: #dedede 3px double;">
<tr><td>
<input type="hidden" name="type" value="sub"/>
<input type="hidden" name="type" value="unsub"/>
<input type="text" name="email" value="email address" size="20" maxlength="100" onfocus="if (this.value=='email address') this.value=''" onblur="if (this.value=='') this.value='email address'"/>
<input type="submit" name="sub" value="subscribe"/>
<input type="submit" name="unsub" value="unsubscribe"/>
</td></tr>
</table>


Ten post edytował kamil881 29.01.2009, 12:51:28
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 - 21:46