PHP/CGI Mail Script Help Needed :)

Discussion in 'PHP' started by antman, Nov 12, 2008.

  1. #1
    Hey,

    Here's my problemo. I've snipped most of the code to show you the outcome I want. So here's the current code. It's in a .cgi file.

    $To = '';
    $Email = '';

    if (defined $FORM{'To' }) { $To = $FORM{'To' }; delete $FORM{'To'}; }

    There's are two boxes on the HTML site. One with the name "To" and the other "Email Ending". I want the form to grab the input from both fields and spit it out with the full thing.

    For example,
    $To = Andrew
    $Email = @hotmail.com

    And the line:
    if (defined $FORM{'To' }) { $To = $FORM{'To' }; delete $FORM{'To'}; }

    will spit out

    Something like this?
    $To = $FORM{'To' }$FORM{'Email' }
    (In the line above, I want to add the two fields together)

    Any help appreciated :)
     
    antman, Nov 12, 2008 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    I donot fully understand what you want?
     
    EricBruggema, Nov 13, 2008 IP