Hi all first post to the forum.
I have been developing a form that has many radio buttons and have managed to output this to email using Php. Now I thought I would be clever and use check boxes for a question on credit card types.The user may have more than one card. I have spend three weekends now trying to get some Php code to make it output to the email. But this seems to be a different ball game. Although I have managed to get the radio buttons working I can not program in Php. I thought I got close on a number of occasions with the check box and had an email that displayed "Array" instead of the checked box values. Now I an quite confused. If any one could help with some Php for this I would be most grateful. This is my form without the submit side of it.
<label><input type="checkbox" name="Credit[]" value="Amex" />
Amex</label>
<br />
<label><input type="checkbox" name="Credit[]" value="Diners"/>
Diners</label>
<br />
<label><input type="checkbox" name="Credit[]" value="Debit Card"/ >
Debit Card </label>
<br />
<label><input type="checkbox" name="Credit[]" value="Mastercard" />
Mastercard</label>
<br />
<label><input type="checkbox" name="Credit[]" value="None" />
None</label>
<br />
<label><input type="checkbox" name="Credit[]" value="Visa" />
Visa</label>
I have been developing a form that has many radio buttons and have managed to output this to email using Php. Now I thought I would be clever and use check boxes for a question on credit card types.The user may have more than one card. I have spend three weekends now trying to get some Php code to make it output to the email. But this seems to be a different ball game. Although I have managed to get the radio buttons working I can not program in Php. I thought I got close on a number of occasions with the check box and had an email that displayed "Array" instead of the checked box values. Now I an quite confused. If any one could help with some Php for this I would be most grateful. This is my form without the submit side of it.
<label><input type="checkbox" name="Credit[]" value="Amex" />
Amex</label>
<br />
<label><input type="checkbox" name="Credit[]" value="Diners"/>
Diners</label>
<br />
<label><input type="checkbox" name="Credit[]" value="Debit Card"/ >
Debit Card </label>
<br />
<label><input type="checkbox" name="Credit[]" value="Mastercard" />
Mastercard</label>
<br />
<label><input type="checkbox" name="Credit[]" value="None" />
None</label>
<br />
<label><input type="checkbox" name="Credit[]" value="Visa" />
Visa</label>
Comment