Home > Template

Form to Email Example

<form  method="POST"
	action="http://branleighcomputers.co.uk/bcformtoemail.php"
	enctype="multipart/form-data"
>
<input type="hidden" name="h_bclicense" value="123-4567"/>
<input type="hidden" name="h_redirect" value="thankyou.html"/>
<input type="hidden" name="h_mailaddr" value="lee.branleigh@gmail.com"/>
<input type="hidden" name="h_maxfilesize" value="1M"/>
<input type="hidden" name="h_extlist" value="jpg,png,jpeg"/>
<input type="hidden" name="h_receiptemail" value="email"/>
<input type="hidden" name="h_receipttext" 
  value="Thank You for your message\n\nLee will contact you shortly (if neccessary)."/>
<input type="hidden" name="h_messagebanner" value="Branleigh Computer - Contact"/>

<p>
Name <input type="text" name="name" size="25"><br>
Age Range:<br>
  1-15<input type="radio" name="age" value="10-15">
16-30<input type="radio" name="age" value="16-30"><br>
  31-50<input type="radio" name="age" value="31-50">
50+<input type="radio" name="age" value="51-plus"><br>
<br>
Sports You Like
<br>
    Footbal/Soccer
<input type="checkbox" name="sport[]" value="FB"><br>
    Rugby
<input type="checkbox" name="sport[]" value="RU"><br>
    Cricket
<input type="checkbox" name="sport[]" value="CR"><br>
    Hockey
<input type="checkbox" name="sport[]" value="HK"><br>
    Other
<input type="checkbox" name="sport[]" value="OT"><br>
Others:<br>
  <textarea  rows="4" cols="30"  WRAP=HARD
           name="othersports"
           >Other Sports</textarea>

<br>
Photo
  <input name="photo" type="file" value="photo" Size="25">
</P>
  <input name="submit" type="submit" value="Send">
    <input name="reset" type="reset" value="Reset">
</form>

Name
Age Range:
  1-15 16-30
  31-50 50+

Sports You Like
    Footbal/Soccer
    Rugby
    Cricket
    Hockey
    Other
Others:
  
Photo   

       

The HTML Code on the left produces the Form below.