Search the Community
Showing results for tags 'body'.
-
can you one of the php master can help me out with this this is my array output Array ( [0] => WI BLACK CHERRY BASE [1] => 1 [2] => WI STRAWBERRY BASE [3] => 1 ) this is the buttom I am using to past the value <form id="form1" name="form1" method="post" action="/storescripts/mailcart.php"> <input type="hidden" name="message" id="message" value="<?php echo $mail_id_array; ?>" /> <input type="submit" name="button" id="button" value="Send Order" /> </form> this is the mailcart.php <?php $message = ''; $name = "wesrt"; $email = "abc@hotmail.com"; $message .= $_POST[message]; $formcontent=" From: $name \n Message: $message"; $recipient = "info@xsn.com"; $subject = "Order Form"; $mailheader = "From: $email \r\n"; //mail($recipient, $subject, $formcontent, $mailheader) or die("Error!"); mail($recipient, $subject, $message, $mailheader) or die("Error!"); print_r($message); //header( 'Location: http://www.xsn.com/index.php' ) ; //echo "Thank You!"; ?> I am getting this: WI BLACK CHERRY BASE .--->.1<br>WI STRAWBERRY BASE .--->.1<br> and I would like to have the following result: WI BLACK CHERRY BASE .--->.1 WI STRAWBERRY BASE .--->.1