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.
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by tropane View Post
    oh, I've mad a mistake in my code now... it should work..
    PHP Code:
    <?php
    if(isset($_POST['copy']) && $_POST['copy'] == 1)
    {
    $mailTo htmlspecialchars($_POST['Email']);
    $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);
    }

    $mailTo 'contact@site.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);
    ?>
    Code:
    <!-- contact-form START here -->
    <div id="feedback">
    <p class="error wrong_name"> - Vennligst skriv inn ditt navn.</p>
    <p class="error wrong_email"> - Vennligst skriv inn din e-postadresse.</p>
    <p class="error wrong_message"> - Vennligst skriv inn din melding.</p>
    </div>
    <form action="sendemail.php" id="contact_us" method="post">
    <p class="label_name">Navn</p>
    <p class="input_form">
    <input type="text" name="Name" />
    </p>
    <p class="label_name">E-post</p>
    <p class="input_form">
    <input type="text" name="Email" />
    </p>
    <p class="label_name">Telefon</p>
    <p class="input_form">
    <input type="text" name="Telefon" />
    </p>
    <p class="label_name">Adresse</p>
    <p class="input_form">
    <input type="text" name="Adresse" />
    </p>
    <p class="label_name">Emne</p>
    <p class="input_form">
    <input type="text" name="Subject" />
    </p>
    <p class="label_name">Melding</p>
    <p class="input_form" id="textarea">
    <textarea name="Message" rows="10" cols="4" id="message_input"></textarea>
    </p>
    <p class="label_name">Send yourself a copy</p>
    <p class="input_form">
    <input type="checkbox" name="copy" value="1" /> 
    </p>
    <p id="submit">
    <input type="submit" value="Send" name="submitButton" class="button" />
    </p>
    </form>
    <p id="success">Takk. Din melding ble sendt. Vi vil besvare din henvendelse så fort som mulig.</p>
    <!-- contact-form END here -->

    Thank you

  2. #17
    New to the CF scene
    Join Date
    Dec 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi all, i found this php form and its great. I have only one question and i hope someone can help me.

    Is it possible in the emails that are send form the system that the information is put into tables?

    How would i go about doing this?

    Thanks

    Hudbarnett


 
Page 2 of 2 FirstFirst 12

Posting Permissions

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