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.

contact form question

Discussion in 'HTML & Website Design' started by Jason1988, Apr 1, 2011.

  1. #1
    i have a few different contact forms on my new website. there is 1 main one and few smaller ones. how do i setup a send.php file for these?
     
    Jason1988, Apr 1, 2011 IP
  2. wordofmind

    wordofmind Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hmmm.... depends what is in your HTML form for example what type of fields your form has and what do you want to do with data contained it fields. So better post this question with your HTML code in programming forum for which you want a send.php file.
     
    Last edited: Apr 1, 2011
    wordofmind, Apr 1, 2011 IP
  3. kanji

    kanji Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    first provide function to check all required fill is not empty and then use php mail function..
     
    kanji, Apr 4, 2011 IP
  4. GoNetix

    GoNetix Peon

    Messages:
    17
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Here is a simple example (from Alleycode HTML Editor)

    <?php

    // Update variables as needed...

    $mail_to ="someone@yourdomain.com";
    $mail_subject = "Hi there!";
    $mail_body = "Nice to see you are practicing
    your PHP. Btw don't forget to look
    in our help section for more tips";

    if(mail($mail_to, $mail_subject, $mail_body)){
    echo "Successfully sent the e-mail \"$mail_subject\" to $mail_to.";
    } else {
    echo "Failed to send the e-mail \"$mail_subject\".";
    }
    ?>
     
    GoNetix, Apr 5, 2011 IP
  5. kvwest125

    kvwest125 Peon

    Messages:
    321
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    kvwest125, Apr 9, 2011 IP
  6. netkonect76

    netkonect76 Greenhorn

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    A very nice php script to use for your feedback form is simplescript.php. Do a search for it on Google....
     
    netkonect76, Apr 19, 2011 IP
  7. akashratheesh

    akashratheesh Member

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #7
    first post your html code
     
    akashratheesh, Apr 21, 2011 IP
  8. akashratheesh

    akashratheesh Member

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #8
    or contact me personally
     
    akashratheesh, Apr 21, 2011 IP
  9. om39a

    om39a Peon

    Messages:
    287
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If i had not mistaken, You are about to send a set of contacts as email that are received form the input fields of you html page. Am I right?
     
    om39a, Apr 21, 2011 IP