1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

PHP Contact form

Discussion in 'Web Development' started by ulefos1955, Oct 12, 2007.

  1. ulefos1955

    ulefos1955 New Member

    Hi all
    I have been editing parts of my website and i have a contact form which needs to be sent to my email address, i have the form inplace but i do not no where to add email infomation, could some one point me in the right direction please


    All help much appricated
     
  2. mcx76

    mcx76 New Member

    There is two ways to creat contact form.
    First. add tag mailto:youremailaddress
    second. you need to php file, where u can change the email address .but peoples cant see ur email address.it will work through browser.
     
  3. ulefos1955

    ulefos1955 New Member

    Hi mcx76

    I already have the form inplace this is the coding i have
    where would the tag go

    <td class="f f2"><form id="form1" action="" enctype="multipart/form-data" name="form1"><table>
    <tr><td>Your Name:</td></tr>
    <tr><td><input type="text"></td></tr>
    <tr><td>Phone:</td></tr>
    <tr><td><input type="text"></td></tr>
    <tr><td>E-mail:</td></tr>
    <tr><td><input type="text"></td></tr>
    <tr><td>Comments:</td></tr>
    <tr><td><textarea cols="2" rows="2"></textarea></td></tr>
    <tr><td><span><a href="#" onClick="document.getElementById('form1').reset()">Reset</a><img alt="" src="images/ch_m.gif"></span><span style="margin-left:19px;"><a href="#" onClick="document.getElementById('form1').submit()">Submit</a><img alt="" src="images/ch_m.gif"></span></td></tr>
    </table></form></td>


    I hope this makes sense as i dont really now what im looking for or where to put the tag
     
  4. this is the main action part, which is processing the form
     
  5. ulefos1955

    ulefos1955 New Member

    Sorry not sure what you mean, do i need to change this code

    "><form id="form1" action="" enctype="multipart/form-data" name="form1"><table>

    to beable to receive the form in my email or am i total in the wrong place?