Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    May 2004
    Posts
    6
    Member #
    5883
    Ok, the PHP script will be posted.. All i am looking to get added is exactly what the title said. I need to get a subject line added to this script but have no clue where to put it or how to code it. the script is as follows.
    ------------------------------------------
    <html><head><title>Conneaut Cellars Mail Form</title></head><body text="#000000" bgcolor="#FFFFFF" link="#FF99FF" vlink="#FF99FF" alink="#FF99FF" background="3green11.jpg">
    <center>
    <?php
    if (!$Submit){ ?><font color=black face=Arial size=4>Fill Out The Form Below And Conneaut Cellars Will Contact You Shortly</b></font><br>
    <form method="post" action="<?php echo $PHP_SELF; ?>">
    <table>
    <tr>
    <td>
    <font color=black face=Arial size=2>
    <b>Name:</b></td><td><input type="text" name="Name" size="30"></td</tr>
    <tr><td><b>E-Mail:</b></td><td><input type="text" name="Email" size="30"></td></tr>
    <tr><td><b>Address:</b></td><td><input type="text" name="Address" size="30"></td></tr>
    <tr><td><b>City:</b></td><td><input type="text" name="City" size="30"></td></tr>
    <tr><td><b>State:</b></td><td><input type="text" name="State" size="30"></td></tr>
    <tr><td><b>Zip:</b></td><td><input type="text" name="Zip" size="30"></td></tr>
    <tr><td><b>Phone:</b></td><td><input type="text" name="Phone" size="30"></td></tr>
    <tr><td><b>Fax:</b></td><td><input type="text" name="Fax" size="30"></td></tr>
    <tr><td><b>Message/<br>Comments:</b></td><td></font><br><textarea name="Message" cols="40" rows="4"></textarea></td></tr>
    <tr><td><input type="Submit" name="Submit" value="Submit"<td>
    </form>
    </tr>
    </td>
    </table>
    <?php
    } else {
    $Line1="$Name sent the following message:";
    mail("info@ccw-wine.com","$Sbjct","$Line1\nName: $Name\nEmail: $Email\nPhone: $Phone\nAddress: $Address\nCity: $City\n$Message","From: $Email");
    print "<font color=black face=Arial size=4>Thank you $Name, for your comments. We will get back to you shortly.</font><hr width=360 align=left>";
    print "<a href=\"http://www.ccw-wine.com/main.htm\">Back Home</a></font>";
    } ?>
    <br><font color="yellow" size="5">
    Also Contact Us By Phone, Fax or Postal Mail:</font>
    <font color="yellow" size="4"><br>
    Conneaut Cellars Winery<br>
    PO Box 5075,<br>
    US 6 Scenic Hwy & Rt 322,<br>
    12005 Conneaut Lake Road<br>
    Conneaut Lake, PA 16316
    <hr>
    Local: 814-382-3999<br>
    Toll Free: 877-ccw-wine<br>
    Fax: 814-382-6151<br>
    We Look Forward To Hearing From You.</font></body></html>

    Thanks for all your help.

  2.  

  3. #2
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    In your mail statement, you reference a variable called $Sbjct
    So, above the mail statement, maybe underneath
    PHP Code:
    $Line1="$Name sent the following message:"
    put something like
    PHP Code:
    $Sbjct "My default subject"
    Hope that helps


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:52 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com