Hi everybody,
Thanks in advance for everyone who is helping me in my problem.
I am trying to process a submission form with php to an email adress. I have hidden fields that have values in the form. There are hidden fields with different values. when the user enter a value it should make some calculations and submit the form with the values. My problem is with array. Because when i tried to submit a couple values it works fine without using an array. If i tried to submit with array i s not sending what i wanted to . Can someone please help i will post some piece of my html code and php code.
Thanks
Name: <input type="text" name="Name" size="24">
Res. Phone:<input type="text" name="Resphone" size="24">
E-mail:<input type="text" name="Email" size="24">
Bookshelves, per section<input type="text" size="2" maxlength="3" name="item2"><input type="hidden" name="weight2" value="65"><input type="hidden" name="name2" value="Bookshelves, per section">
Chair, Arm<input type="text" size="2" maxlength="3" name="item3"><input type="hidden" name="weight3" value="60"><input type="hidden" name="name3" value="Chair, Arm">
Chair Rocker (wood)<input type="text" size="2" maxlength="3" name="item4"><input type="hidden" name="weight4" value="40"><input type="hidden" name="name4" value="Chair Rocker (wood)"></td>
My php Code is
<?
$message="
Name: ".$Name."
Resphone: ".$Resphone."
Email: ".$Email."
$name2: ".$item2." ".$weight2." ".$item2$weight2."
$name3: ".$item3." ".$weight3." ".$item3$weight3."
$name4: ".$item4." ".$weight4." ".$item4*$weight4." ";
$to = "whatever@whatever.com";
$subject = "Submission Form ";
$header = "From: $Email\n"
. "Reply-To: $Email\n"
. "MIME-Version: 1.0\n"
. "Content-type: text/plain; charset=\"ISO-8859-1\"\n"
. "Content-transfer-encoding: quoted-printable;\n";
mail($to,$subject,$message,$header);
?>
If i have just for items thats working fine because i dont need to have an array. But i have like 166 items. i need an array.
Other question is how can i just submit this items in a table to the email adress.
Thank you very much for taking time.