Podpowiedzcie jak rozszerzyć ten kod o kolejne obowiązkowe pola. ale w taki sposób aby były teżw formularzu pola niewymagane
Kod PHP:
<form action="mailto:adres e-mail" method="post" onsubmit="if (this.tekst2.value == '') { alert('Zanim wyślesz formularz, musisz wypełnić pole tekstem!'); return false }">
<input type="text" name="tekst2" /><input type="submit" value="OK" />
</form>