PHP help

Discussion in 'OT Technology' started by shastaisforwinners, Jan 11, 2004.

  1. shastaisforwinners

    shastaisforwinners OT Supporter

    Joined:
    Aug 31, 2003
    Messages:
    2,820
    Likes Received:
    4
    Location:
    Paramore
    ok, I'm a coding novice so it's probably something stupid but I can't figure out what :(

    here is the section of code I'm working on:

    //---------------------------------
    $mailContent="--------CONTACT--------\n"
    ."User Name: ".$username."\n"
    ."First Name: ".$firstName."\n"
    ."Last Name: ".$lastName."\n"
    ."Company Name: ".$company."\n"
    ."Phone Number: ".$phone."\n"
    ."Extension: ".$phoneext."\n"
    ."Fax: ".$fax."\n"
    ."Mobile: ".$mobile."\n"
    ."E-mail: ".$email."\n\n\n--------ADDRESS--------\n"
    ."Street Address: ".$address."\n"
    ."Apt. Number: ".$aptnumber."\n"
    ."City: ".$city."\n"
    ."State: ".$state."\n"
    ."Zip Code: ".$zipcode."\n"

    //----------------------------------
    $toAddress="[email protected]"; /* your company's e-mail address */
    $subject="New customer registration"; /* e-mail subject line */
    $recipientSubject="www.xxxxxxxxxx.com registration confirmation"; /* customer's e-mail address */
    $receiptMessage = "Thank you ".$firstName." for registering with xxxxxxxxxxxxxx!\n\n\nHere is what you submitted to
    us:\n\n"


    the problem is that $toAddress , $subject, $recipientSubject, and $recieptMessage won't run correctly (the program takes strings from an html form, stores them in variables, then inserts them into a database and e-mails the person who registered with the information that was stored). Can anyone tell me what my mistake is?
     
    Last edited: Jan 11, 2004
  2. shastaisforwinners

    shastaisforwinners OT Supporter

    Joined:
    Aug 31, 2003
    Messages:
    2,820
    Likes Received:
    4
    Location:
    Paramore
    n/m, I finally found it. I forgot to put a semicolon after ."Zip Code: ".$zipcode."\n"
     

Share This Page