Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: Contact form

  1. #1
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    8
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Contact form

    Hi

    Any body can help me to make PHP code for this form.

    I have form code but dont have php code and kuldnt make this, so please help me.

    thank you
    Dylan

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,313
    Thanks
    58
    Thanked 525 Times in 512 Posts
    Blog Entries
    5
    This is a project request - you need to put it in that forum really.

    Also, what do you want the php to do with the form data? - Store in a database or email it?
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #3
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Sounds like a paying gig, how much you paying?

  • #4
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    8
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Thanks for answer, i want like this code for example:but a code that works with form. thanks


    <?php
    mail($mailTo, $subject, $message, $header);
    }

    $mailTo = 'mail@yahoo.com';
    $name = htmlspecialchars($_POST['Name']);
    $mailFrom = htmlspecialchars($_POST['Email']);
    $telefon = htmlspecialchars($_POST['Telefon']);
    $adresse = htmlspecialchars($_POST['Adresse']);
    $subject = htmlspecialchars($_POST['Subject']);
    $message_text = htmlspecialchars($_POST['Message']);
    $header = "From: ". $name . " <" . $mailFrom . ">\r\n";
    $header .= "Content-Type: text/plain; charset=\"UTF-8\"";

    $message = 'Navn: '.$name.'
    E-post: '.$mailFrom.'
    Telefon: '.$telefon.'
    Adresse: '.$adresse.'
    Melding: '.$message_text;

    mail($mailTo, $subject, $message, $header);
    ?>


    @Fumigator , it was free form :-)

  • #5
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,313
    Thanks
    58
    Thanked 525 Times in 512 Posts
    Blog Entries
    5
    I've replied earlier so you must of seen the link in my signature... please use the [php] tags - they make code so much easier for us to read
    See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/

    Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!

  • #6
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    @Fumigator , it was free form :-)
    Yes, I understood you are looking for free coding. My question was tongue-in-cheek, because asking for free coding is generally frowned on here at CF.

    This is a learning forum. If you come here and post questions about PHP in the spirit of seeking to gain knowledge and understanding of PHP, you are welcome. If you come here and post work requests, expecting someone to deliver finished code to you, and for free no less, then you are in the wrong place.

  • #7
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    8
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Fumigator View Post
    Yes, I understood you are looking for free coding. My question was tongue-in-cheek, because asking for free coding is generally frowned on here at CF.

    This is a learning forum. If you come here and post questions about PHP in the spirit of seeking to gain knowledge and understanding of PHP, you are welcome. If you come here and post work requests, expecting someone to deliver finished code to you, and for free no less, then you are in the wrong place.
    OK. Thanks.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •