Jump to content

mrebeler87

New Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by mrebeler87

  1. I receive the email just fine but when I do I don't get any info. What am I missing?

    <?php
    $email = $_POST['email'];
    $first = $_POST['first'];
    $last = $_POST['last'];
    $business = $_POST['business'];
    $home = $_POST['home'];
    $cell = $_POST['cell'];
    $other = $_POST['other'];
    $street = $_POST['street'];
    $city = $_POST['city'];
    $state = $_POST['state'];
    $zip = $_POST['zip'];
    $con_time = $_POST['con_time'];
    $cameras = $_POST['cameras'];
    $quality = $_POST['quality'];
    $monitor = $_POST['monitor1'];
    $monitor = $_POST['monitor2'];
    $monitor = $_POST['monitor3'];
    $monitor = $_POST['monitor4'];
    $monitor = $_POST['monitor5'];
    
    $to = 'sales@landb-securities.com';
    $subject = ' Sales Request ' ;
    $message = " 
    
    Conact Name:
    Name:		$first $last
    Business Name:	$business
    
    Conact Numbers:
    Home:	$home
    Cell:	$cell
    Other:	$other
    	Preferred Contact time: $con_time
    
    Address:
    Street Address:	$street
    City:		$city
    State:		$state
    Zipcode:	$zip
    
    The customer is interested in $cameras at $quality and wants to monitor it via $monitor1,$monitor2,$monitor3,$monitor4,$monitor5. \r\n";
    
    $headers = 'From: ' .$email . "\r\n" .
        'Reply-To: '  .$email . "\r\n" .
        'X-Mailer: PHP/' . phpversion();
    
    mail($to, $subject, $message, $headers);
    
    echo "Thank You, Your request has been sent.<br> <br>";
    echo "<a href=\"http://landb-securities.com\"> Back to Home Page </a>";
    
    ?> 
    
  2. form.html

     

     

    I learn somewhat different than alot of others. I tend to work problems from the answer and learn better.

     

    I created a Form, i need someone to give me the PHP code, so i can see what code goes where.

     

    Can someone please write me some PHP script?

     

    This code is simply meant to send me an email with the specified info that is clicked on the form.

     

    Attached is my simple HTML for it.

     

    Thanks in advance! and sorry if this is in the wrong place.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.