php - How to send contact form info to email -


i have small form i'm not understanding how send email using php. there seems different techniques. if code small form can analyze , take there. thank in advance!!!

html form:

<form method="post" action="">                             <p>                                 <input type="hidden" name="recipient" value="dew02d@yahoo.com"  />                                 <input type="hidden" name="subject" value="test feedback"  />                                 <input type="hidden" name="redirect" value="main.html"  />                             </p>                             <p style="font-family:arial, helvetica, sans-serif; color:#fff; font-size:12px;                              font-weight:bold"><label>first name:                                 <input type="text" name="first name" size="30" maxlength="30"                                 style="margin-left:27px"  />                             </label></p>                             <p style="font-family:arial, helvetica, sans-serif; color:#fff; font-size:12px;                              font-weight:bold"><label>last name:                                 <input type="text" name="last name" size="30" maxlength="30"                                  style="margin-left:27px"  />                             </label></p>                             <p style="font-family:arial, helvetica, sans-serif; color:#fff; font-size:12px;                              font-weight:bold"><label>phone number:                                 <input type="text" name="phone number" size="30" maxlength="10"                                   style="margin-left:5px" />                             </label></p>                             <p style="font-family:arial, helvetica, sans-serif; color:#fff; font-size:12px;                              font-weight:bold"><label>email:                                 <input type="text" name="email" size="30" maxlength="30"                                   style="margin-left:59px" />                             </label></p>                             <p style="margin-top:19px; margin-left:244px;">                                 <input type="submit" value="submit"  />                             </p>                          </form> 

use this

submit simple form, loop , send mail?

only 1 thing, set , subject in php

ans set form action page.

this best found , can use field in form.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -