Jump to content

***** I need some help over here! *****


Recommended Posts

I used to attend college for computer programming. And I understand a decent chunk of what I'm doing, but here's where I'm going crazy.

 

I have the following code below. I want to pass the variables set by a form to an HTML email that goes to a valid account. Here's what I've been trying to do:

 

 

----------------------------------------------------------------------------------------

<?

 

//Variables that drop into the email body and elsewhere.

 

$cust_name = $_REQUEST['name'] ;

$cust_phone = $_REQUEST['phone'] ;

$cust_email = $_REQUEST['email'] ;

$cust_refd = $_REQUEST['refd_by'] ;

 

$message = '

<body>

<div align="left">

  <p>A visitor to the site has submitted the form to listen to the 10-minute "FREE Membership

 

Benefits" recording. </p>

  <p><strong>Prospect Profile: </strong></p>

  <table width="400" border="0" cellspacing="0" cellpadding="0">

    <tr>

      <td width="97">Name:</td>

      <td width="303" bgcolor="#CCCCCC">***** WHAT GOES HERE?!?!? *****</td>

    </tr>

    <tr>

      <td>Phone:</td>

      <td bgcolor="#CCCCCC"> </td>

    </tr>

    <tr>

      <td>Email:</td>

      <td bgcolor="#CCCCCC"> </td>

    </tr>

    <tr>

      <td>Referred by: </td>

      <td bgcolor="#CCCCCC"> </td>

    </tr>

  </table>

  <p><strong>Extra Information:</strong></p>

  <p>The message was sent on:  </p>

  <p>Please consider contacting this customer to explore options in becoming a representative! </p>

  <p> </p>

</div>

</body>

';

 

 

echo $message;

 

 

?>

 

----------------------------------------------------------------------------------------

 

Naturally, this doesn't work. And I remember from my C++ class that adding data from one variable to a string is possible... but I can't for the life of me remember how.

 

Bottom line, H E L P!!!

 

 

Link to comment
https://forums.phpfreaks.com/topic/74648-i-need-some-help-over-here/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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