Hi
I am trying to set up a shoppping cart for.
I need to pass the values that are in
<script> GetFormCart()</script> in the php form programn to send the data
Everything works fine until the user is going to submit the form.
I have the following set up.
The user selects the what they want. then they come to the checkout page
<HEAD>
<TITLE>Order Form</TITLE>
<script SRC="nopcart.js"></script>
Code.>>>>>>>>>>>>>>
then
<B><h1><U>Parts & Accessories Order Form</B></h1></U><br>
<p><font face="Arial, Helvetica, sans-serif" size="3"><b>The items listed below
are currently in your shopping cart: </b></font></p>
<FORM ACTION="m.7php" method="POST" onsubmit="return Submitting()" name="FormContacts">
<SCRIPT>
GetFromCart();
</SCRIPT>
<TABLE border=0>
<TR>
<td align=></td> <td align="right"><b>Today's date:</b> <input name = "date" size = "24" value = "Loading..."></td></tr>
<tr>
<TD>Company Name:</TD>
<TD><INPUT NAME="Company" Size=22> Account Number: <INPUT
NAME="Account"
size="6" MAXLENGTH=6></TD>
</TR>
<TR>
<TD>Contact Name:</TD>
<TD><INPUT NAME="Contact_Name" size=25></TD>
</TR>
<TR>
<TD>Purchase Order: </td>
<TD><INPUT NAME="Purchase_Order" size=20></TD>
</TR>
More code...
Then when they submit the order, it goes to m7.php
See code
<?php
$msg = "Company:\t$Company\n";
$msg .= "Name: \t$First_Name $Last_Name\n";
$msg .= "Address:\t$Address\n";
$msg .= "City: \t$City\n";
$msg .= "State: \t$State\n";
$msg .= "Zip Code:\t$Postal_Code\n";
$msg .= "Account#:\t$Account\n";
$msg .= "Email Address:\t$email\n";
$msg .= "Message:\t$message\n\n";
$recipient = "whatever.com";
$subject = "Web Site Feedback";
$mailheaders = "From: My Web Site <> \n";
$mailheaders = "Reply-To: $email\n\n";
mail($recipient, $subject, $msg, $mailheaders);
$msg1 .= "Thanks for placing an Order. We will contact you as soon as possible to inform you regarding your order status and delivery \n\n";
However, it doesnt print the values in GetFromCart()
How do i pass these values so it would print like the rest. Please if you could help me figure this out.
I cant get it to work ..i have tried.
I would really appreciate your help thanks..
Regards,
Al lOpez