"Contact Us" Page

Discussion in 'HTML & Website Design' started by jameykened, Nov 3, 2009.

Thread Status:
Not open for further replies.
  1. #1
    I own cemkir.com , which is still under development, I am very serious about it so I want everything perfect, I am not a PHP/HTML/coder or etc.... so I need a simple Contact Us Page , but I don't know the HTML

    What I need is

    Name:

    Email:

    Subject:

    Message:

    and then i would like it to go to my email, how can I do this???
    Thanks
     
    jameykened, Nov 3, 2009 IP
  2. adwebtiser

    adwebtiser Peon

    Messages:
    95
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just google "simple contact us form" the first link will give you a script that you can download and put in your website.

    If you are looking to code it yourself, you would need a php page which would have the form in html and the php part of it parses the form values and emails them to you.
     
    adwebtiser, Nov 3, 2009 IP
  3. jameykened

    jameykened Peon

    Messages:
    144
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I found the source, thanksguys :)
     
    jameykened, Nov 3, 2009 IP
  4. LeetPCUser

    LeetPCUser Peon

    Messages:
    711
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Here is a custom set of code if you want it.

    
    <?php
     //if they have submitted the form
     if (!empty($_POST['name']))
     {
      //set your email
      $to = 'youremail@email.com';
      //set your subject
      $subject = 'Contact Us';
      //set the message
      $message = "<b>Name:</b> ".$_POST['name']."\n<b>Email:</b> ".$_POST['email']."\n<b>Subject:</b>: ".$_POST['subject']."\n\n<b>Message:</b>: ".$_POST['message'];
      //set the header information
      $headers = 'From: '.$_POST['email']."\r\n" .
        'Reply-To:'.$_POST['email'];
    
      //mail the message
      mail($to, $subject, $message, $headers);
    
     //let the user know it was emailed
     echo '<p>Thank you for contacting us.</p>';
     }
     //else if they have not submitted the form print the form
     else
     {
    ?>
     <form action="yourpage.php" method="post">
      <table>
       <tr>
        <td><strong>Name:</strong></td>
        <td><input type="text" name="name" /></td>
       </tr>
       <tr>
        <td><strong>Email:</strong></td>
        <td><input type="text" name="email" /></td>
       </tr>
       <tr>
        <td><strong>Subject:</strong></td>
        <td><input type="text" name="subject" /></td>
       </tr>
       <tr>
        <td><strong>Message:</strong></td>
        <td><textarea name="message" cols="40" rows="5"></textarea></td>
       </tr>
      </table>
     </form>
    <?php
     }
    ?>
    
    Code (markup):
     
    LeetPCUser, Nov 3, 2009 IP
  5. forextrendalerts

    forextrendalerts Guest

    Messages:
    132
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    We like to keep our phone lines clear for customers.
    If you wish to sell to us advertising or marketing products, we ask you to contact us via post or email only.

    We also ask that once sent you do not follow up via the telephone, should we be interested in your offer we will contact you.
     
    forextrendalerts, Nov 4, 2009 IP
  6. B.Williams

    B.Williams Active Member

    Messages:
    555
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #6
    I think there is many online website available which provide you source code. I prefer E-MailMe Form. This one is simply great and providing spam filtration also. Just check them and good luck :)
     
    B.Williams, Nov 4, 2009 IP
  7. chetanseo

    chetanseo Active Member

    Messages:
    107
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #7
    You can find contact us page by third party like : http://kontactr.com . Firstly you have to sign up in kontactr, put up your contact email id on which you want to keep contact and then active the confirmation. Again you will have to login in kontactr and then you will find a contact us page script which you will have to add in your site(contact us page).
     
    chetanseo, Nov 4, 2009 IP
  8. wp-designer

    wp-designer Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    to make a simple contact form, go to supersimple.org/contact
    and fill the fields u need. on clicking submit, u will get the php file.
    It is simple, no need of sign up or anything, just 20 seconds work!
     
    wp-designer, Nov 4, 2009 IP
Thread Status:
Not open for further replies.