Link to home
Start Free TrialLog in
Avatar of flipside1212
flipside1212

asked on

Simple PHP form processing help please

Hi there. I'm trying to write a php script that will email the contents of a form to two people. It doesn't have to be fancy, the data just needs to be clear in the email. I know almost nothing about PHP so I need someone's help. I've included the the form and the php I have so far (not much).

<FORM ACTION="formprocess.php" NAME="invoice">

<TABLE CELLPADDING="10" CELLSPACING="0" BORDER="0">
<TR>
      <TD COLSPAN="2"><IMG SRC="images/logo_premier_invoice.jpg"><BR><BR>
      <B>Please fill out this quick form and click here --> <INPUT TYPE="submit" VALUE="Send" style="background-color:yellow;"> to email us and our customs broker.</B><BR></TD>
</TR>
<TR>
      <TD WIDTH="100"><B>Full Name</TD>
      <TD WIDTH="400"><INPUT NAME="customer_name" TYPE="text" SIZE="40"></TD>
</TR>
<TR>
      <TD WIDTH="100"><B>Company</TD>
      <TD WIDTH="400"><INPUT NAME="company_name" TYPE="text" SIZE="40"></TD>
</TR>
<TR>
      <TD WIDTH="100"><B>Carrier #</TD>
      <TD WIDTH="400"><INPUT NAME="carrier" TYPE="text" SIZE="20"></TD>
</TR>
      <TD><B>Tracking #</TD>
      <TD><INPUT NAME="tracking" TYPE="text" SIZE="20"></TD>
</TR>
<TR>
      <TD><B>Our P.O. #</TD>
      <TD><INPUT NAME="po" TYPE="text" SIZE="20"></TD>
</TR>
<TR>
      <TD><B># of Pieces or Pallets</TD>
      <TD><INPUT NAME="pieces" TYPE="text" SIZE="20"></TD>
</TR>
<TR>
      <TD><B>Weight</TD>
      <TD><INPUT NAME="weight" TYPE="text" SIZE="20"></TD>
</TR>

</TABLE>


**************formprocess.php

<?PHP

$recipient = 'greig@premier-lighting.net, kdaniels@summitcustombrockers.com';
$subject = 'Canada Customs Invoice';

$customer_name = $_POST['customer_name'];
$company_name $_POST['company_name'];
$carrier_number = $_POST['carrier'];
$tracking_number = $_POST['tracking'];
$po_number = $_POST['po'];
$pieces_number = $_POST['pieces'];
$weight_number = $_POST['weight'];

?>

ASKER CERTIFIED SOLUTION
Avatar of jaysef
jaysef

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial