I have an html form and a code to process it and create an e-mail to send the results.
I have everything working fine apart from the checkbox part.......
html form
<form name="market_research" method="post" action="processform.php">
<p><b>Select Color</b><br>
<INPUT TYPE="RADIO" NAME="Color" VALUE="Blue" >
Blue<br>
<INPUT TYPE="RADIO" NAME="Color" VALUE="Red" >
Red<br>
<INPUT TYPE="RADIO" NAME="Color" VALUE="Yellow" >
Yellow<br>
<INPUT TYPE="CHECKBOX" NAME="Information[]" VALUE="Shipped" >
Notify me when shipped<br>
<INPUT TYPE="CHECKBOX" NAME="Information[]" VALUE="Built" >
Notify me when it is built<br>
<INPUT TYPE="CHECKBOX" NAME="Information[]" VALUE="Ordered" >
Notify me when the parts are on order<br>
Where did you hear about us?
<INPUT TYPE="TEXT" NAME="Comments" size="30" maxlength="30">
<br>
</p>
<hr>
<INPUT TYPE="SUBMIT" VALUE="Submit">
<INPUT TYPE="RESET" VALUE="Clear">
</form>
process code
$color=$_POST['Color'];
$when=$HTTP_POST_VARS['Information'];
$heard=$_POST['Comments'];
$body = "
The user has requested the following information
Colour - $color
They want the information when
$when
heard of you via $heard
";
mail ("info@ppp.com", "Feedback From Website", "$body", "FROM:website@ppp.co.uk");
but when the code is run, the e-mailed results are
The user has requested the following information
Colour - Blue
They want the information when
Array
heard of you via web
Why am I getting Array instead of the user input results? Can anyone see where I am going wrong - thanks