Jump to content

Wireframe

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Posts posted by Wireframe

  1. Hey everyone,

    I'm new to this forum and I came here looking for some help with PHP. I've just started

    getting into PHP and you guys are probably a smile ahead.

     

    So basically, I have some inputs and want them to be sent to my email in a basic layout shown below.

     

    Inputs:
    
    Title = _title
    Forum Name = _forumname
    Name = _irlname
    Age = _age
    

     

    I want the email to be sent to me like:

     

    Email Title
    ---------------
    Forum Name: TextGiven
    Real Life Name: TextGiven
    Age: TextGiven

     

    Here is my current code which titles the email correctly, but I want to figure out how

    to make $message set to the example email I showed above.

     

    <?php 
    $to = "******@*********.net";
    $subject = $_REQUEST['_title'];
    $headers = "From: ***** Applicant \r\n"; 
    $headers .= "MIME-Version: 1.0\r\n"
      . "Content-Type: text/html; charset=\"iso-8859-1\"\r\n"
    . "Content-Transfer-Encoding: 7bit\r\n";
    $message =  $_REQUEST['_forumname' & '_irlname'];  <--- Part I want fixed
    
    
    if(mail($to, $subject, $message, $headers)) 
    {
         echo 'MAIL SENT'; 
    } else { 
         echo 'MAIL FAILED';
    } 
    ?> 
    

     

    I have this code, and it works. But I want $message = "" to make the message contain not just the

    forum name, but as well as the name, age, and all other inputs I want.

×
×
  • 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.