Results 1 to 2 of 2

Thread: PHP Contact Form

  1. #1
    Join Date
    Feb 2013
    Thanked 1 Time in 1 Post

    Default PHP Contact Form

    I have a PHP contact form. I want the email to go to the friends email. When I put a static email in such as it sends the email, however; I need to have it be dymaic and send to whatever email is placed in the friends email field. I tried this and it doesn't send.
    PHP Code:
    // User settings
    $to $email;
    $subject "Bri Cooper"
    the website is

    Go to share and you will see the form pop up.

    I have attached the PHP file as a text file.
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2008
    Thanked 1 Time in 1 Post


    Try to set a value for the friend's email as POST since you use it down in your send action...

    <label for='contact-email'>*Friends Email:</label>
    <input type='text' id='contact-email' class='contact-input' name='email' tabindex='1002' value="<?php $_POST["email"] ?>" />";

Similar Threads

  1. Contact
    By JFlores in forum HTML
    Replies: 12
    Last Post: 05-08-2012, 05:49 PM
  2. php contact form with no thank you
    By nate51 in forum PHP
    Replies: 3
    Last Post: 08-16-2011, 02:18 PM
  3. CSS Contact form-help need
    By bogdancornel in forum CSS
    Replies: 0
    Last Post: 06-22-2010, 03:17 PM
  4. Contact form using php
    By biomike in forum PHP
    Replies: 13
    Last Post: 12-26-2008, 03:25 AM
  5. Contact Form
    By Johnnymushio in forum HTML
    Replies: 2
    Last Post: 08-25-2006, 05:20 PM

Tags for this Thread


Posting Permissions

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