03-09-2013, 15:51
Witam,
Mam następujący formularz w html'u
Czy ktoś może mi pomóc jak powinien wyglądać plik PHP aby dane wpisane tutaj były wysyłane na maila ?
Mam następujący formularz w html'u
Cytat:<form id="contact" action="#">
<fieldset>
<span class="error" id="name_error">Proszę wpisać imię !</span>
<span class="error" id="email_error">Proszę wpisać adres e-mail !</span>
<span class="error" id="email_error2">Proszę podać poprawny adres e-mail !</span>
<span class="error" id="msg_error">Proszę wpisać wiadomość !</span>
<input type="text" name="name" id="name" size="50" value="Imię..." class="text-input" onblur="if (this.value == ''){this.value = 'Imię...'; }" onfocus="if (this.value == 'Imię...') {this.value = ''; }" />
<input type="text" name="email" id="email" size="50" value="Email..." class="text-input" onblur="if (this.value == ''){this.value = 'Email...'; }" onfocus="if (this.value == 'Email...') {this.value = ''; }" />
<input type="text" name="subject" id="subject" value="Temat..." class="text-input" onblur="if (this.value == ''){this.value = 'Temat...'; }" onfocus="if (this.value == 'Temat...') {this.value = ''; }" />
<textarea cols="60" rows="10" name="msg" id="msg" class="text-input" onblur="if (this.value == ''){this.value = 'Wiadomość...'; }" onfocus="if (this.value == 'Wiadomość...') {this.value = ''; }">Wiadomość...</textarea>
<br class="clear" />
<input type="submit" name="submit" class="button mini" id="submit_btn" value="Wyślij"/>
</fieldset>
</form>
Czy ktoś może mi pomóc jak powinien wyglądać plik PHP aby dane wpisane tutaj były wysyłane na maila ?