I don't know perl, so I don't know what builds the %form hash and other variables.
# Create invoice and Prepare for emailing $message = "\n$sheader\n"; $message .= "$saddress\n"; $message .= "$sphone\n\n"; $message .= "\n"; $message .= "Date: $date\n"; $message .= "Invoice No: $inv_num\n"; $message .= "Customer Id: $sessionid\n\n"; $message .= "---------------------------------------------\n"; $message .= "Qty\t Description\t\t\t\t\t Amount\n"; $message .= "---------------------------------------------\n"; $message .= " 1 \t $description\t $amount\n"; $message .= "---------------------------------------------\n"; my $total = sprintf("TOTAL: %5.2f", $amount); $message .= "$total\n\n"; $message .= "PAYMENT METHOD: $method\n\n"; $message .= " Payment Type: $payment_type\n"; $message .= " Payment Date: $payment_date\n"; $message .= " Payment Status: $payment_status : $payment\n"; $message .= " Account Status: $payer_status\n"; $message .= " Address Status: $address_status\n"; $message .= " Transcation ID: $auth_code\n\n"; $message .= "SessionID: $sessionid\n\n"; $message .= "BILLING ADDRESS:\n\n"; $message .= "--"." $fname $lname\n"; $message .= "--"." $address\n"; $message .= "--"." $city, $state\. $zip\n"; $message .= "--"." $country\n"; $message .= "--"." $phone\n"; $message .= "--"." $email\n"; $message .= "\n"; $message .= "----------------------------------------------------- +------\n"; $message .= "Remote HOST: $ENV{'REMOTE_HOST'}\n"; $message .= "Remote IP address: $ENV{'REMOTE_ADDR'}\n"; $message .= "Remote Browser: $ENV{'HTTP_USER_AGENT'}\n"; return $message; } # end of sub

In reply to Re^4: Perl form user input by JamesBond007
in thread Perl form user input by JamesBond007

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.