1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

I need Html code - Contact form

Discussion in 'Programming' started by roiei, Dec 6, 2006.

  1. #1
    where I can get it?
    I've search in google and didn't find something I'd like ...
     
    roiei, Dec 6, 2006 IP
  2. jessecooper

    jessecooper Peon

    Messages:
    793
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #2
    well you can make your own forms... there is tons of tutorials out there... and then style them with css, eric meyer has written alot on styling forms with css.
     
    jessecooper, Dec 6, 2006 IP
  3. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #3
    
    <?
    
    $sysmail = "you@yourdomain.com";
    
    if ($_POST['sendmessage'])
    {
    	if(!isset($_POST['message']))
    	{
    		$messages = "You're email needs to contain a message, dummy!!!<br>";
    	}
    	elseif(!preg_match("/^.*?@.*?$/", $_POST['email']))
    	{
    		$messages = "Stop trying to trick me and use a real email, or me and you will fall out!!<br>";
    	}
    	elseif(mail($sysmail, stripslashes(trim($_POST['subject'])), stripslashes(trim($_POST['message'])), "From: " . $_POST['email'] . "\r\n"))
    	{
    		$messages = "Thanks for your message someone will get back to you shortly.<br>";
    	}
    	else {
    			$messages = "The programmer who wrote this isn't as clever as he thinks, and something has gone wrong.<br>";
    		 }
    }
    ?>
    <h2>Contact Form</h2>
    <form action="" method="post">
    <span style="color:#FF0000; font-weight:bold;"><?=$messages ?></span>
      <table width="50%" border="0">
        <tr>
          <td width="50%" valign="top"><div align="right"><strong>Your Email Address : </strong></div></td>
          <td width="50%" valign="top"><input type="ext" id="email" name="email" size="50"/></td>
        </tr>
        <tr>
          <td valign="top"><div align="right"><strong>Message Subject : </strong></div></td>
          <td valign="top"><input type="ext" id="subject" name="subject" size="50"/></td>
        </tr>
        <tr>
          <td valign="top"><div align="right"><strong>Your Message </strong></div></td>
          <td valign="top"><textarea name="message" cols="50" rows="10" id="message"></textarea></td>
        </tr>
        <tr>
          <td colspan="2" valign="top"><div align="center">
              <input type="submit" value="Send Message">
            </div></td>
        </tr>
      </table>
      <input type="hidden" name="sendmessage" value="1">
    </form>
    
    PHP:
    save is as php and <? inlcude("filename.php"); ?> in your page, or copy it to it's own html page, there are no headers on the page.....
     
    krakjoe, Dec 6, 2006 IP
  4. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #4
    Barti1987, Dec 8, 2006 IP
  5. roiei

    roiei Banned

    Messages:
    842
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Many thanks
     
    roiei, Dec 9, 2006 IP
  6. livingearth

    livingearth Well-Known Member

    Messages:
    1,469
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    140
    #6
    Looks like I'm too late to help you on this one. These guys pretty well have it covered...
     
    livingearth, Dec 9, 2006 IP
  7. adolix

    adolix Peon

    Messages:
    787
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You can use also one of those remotely form processing service. You can design your contact form and get the HTML form code at the end. I use 123 Contact Form and their free plan pretty much covers all my needs.
     
    adolix, Nov 17, 2009 IP
  8. solarpanelsdirect

    solarpanelsdirect Peon

    Messages:
    152
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    This is the form that I wrote for my form submission that will email a lead to me, you can customize it as you wish, but it should get the job done for you.

    
    <?php
    $txtname = $_POST['txtname'];
    $txtemail = $_POST['txtemail'];
    $txtmessage = $_POST['txtmessage'];
    
    $message =
    '
    Name: '.$txtname.
    '
    Email: '.$txtemail.
    '
    Message: '.$txtmessage;
    
    mail( "youremail@email.com", "New Message For Your Company",
        $message, "From: ".$txtemail );
    header('Location: http://www.YourCompany.com/thanks.html');
    ?>
    
    Code (markup):
     
    solarpanelsdirect, Nov 17, 2009 IP
  9. fandor

    fandor Active Member

    Messages:
    77
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #9
    I like Wufoo, it is free HTML forms builder. Quick and easy.
     
    fandor, Aug 12, 2010 IP
  10. scudmissile

    scudmissile Member

    Messages:
    72
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #10
    good... thanks my friend :)
     
    scudmissile, Dec 9, 2010 IP
  11. Tomastamm

    Tomastamm Well-Known Member

    Messages:
    448
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    110
    #11
    you have to check google :)
     
    Tomastamm, Dec 15, 2010 IP
  12. scudmissile

    scudmissile Member

    Messages:
    72
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #12
    scudmissile, Dec 15, 2010 IP
  13. AcevedoAaron

    AcevedoAaron Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    use free cms system s and get the full balance yes search on google you will get the best result.aso try other programmers suggestions it will be great
     
    AcevedoAaron, Dec 17, 2010 IP
  14. savaliyakh

    savaliyakh Member

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #14
    foxyform.com is good.
     
    savaliyakh, Jul 28, 2013 IP
  15. Piyush Shrivastava

    Piyush Shrivastava Greenhorn

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #15
    A simple way is to embed the Google Drive contact form. Visit your Google Drive, create a form and embed it into your website. Check messages in your drive.
    ____________________________________________________________________
    Technology Reviews, Tricks, How-to's
     
    Piyush Shrivastava, Jul 28, 2013 IP