Need help with contact us form

Discussion in 'JavaScript' started by dirthosting, Feb 21, 2011.

  1. #1
    Hey guys, this is probably really amateur, but I'm trying to get my contact form to work (Send the contents filled into the form to my email address). The code is below, any help would be appreciated.

    Thanks:
    <h3 class="img-indent-bot">Contact Form</h3>
    <form id="form-main2" action="" enctype="multipart/form-data" method="post">
    <fieldset>
    <div class="wrapper">
    <div class="column-1">
    <label><input name="name" value="enter your Name:" onBlur="if(this.value=='') this.value='enter your Name:'" onFocus="if(this.value =='enter your Name:' ) this.value=''" /></label>
    <label><input name="name1" value="enter your E-mail:" onBlur="if(this.value=='') this.value='enter your E-mail:'" onFocus="if(this.value =='enter your E-mail:' ) this.value=''" /></label>
    <input name="name2" value="enter your phone:" onBlur="if(this.value=='') this.value='enter your phone:'" onFocus="if(this.value =='enter your phone:' ) this.value=''" />
    <div class="buttons">
    <a class="button" href="" onClick="document.getElementById('form-main2').reset()">clear</a><a class="button" href="" onClick="document.getElementById('form-main2').submit()">send</a>
    </div>
    </div>
    <div class="column-2">
    <textarea onBlur="if(this.value=='') this.value='ENTER YOUR MESSAGE:'" onFocus="if(this.value =='ENTER YOUR MESSAGE:' ) this.value=''">ENTER YOUR MESSAGE:</textarea>
    </div>
    </div>
     
    dirthosting, Feb 21, 2011 IP
  2. camjohnson95

    camjohnson95 Active Member

    Messages:
    737
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    You need server-side code in order to send the email. Either PHP, ASP, ASP.NET .. whichever your host allows. There is many free scripts out there available that a simple google search will return...
     
    camjohnson95, Feb 22, 2011 IP