I'm trying to figure out a basic web email form. I got the code from somewhere and am trying to make the checkboxes options.
The email gets sent but just has Array next to the option.
What am I doing wrong?
I'm trying to figure out a basic web email form. I got the code from somewhere and am trying to make the checkboxes options.
The email gets sent but just has Array next to the option.
What am I doing wrong?
Some sample code will help diagnose the problem. At a guess I'd say you've got something like
$message = "contact from message\r\n";
$message .= $_POST['check'];
since $_POST['check'] is an array, you need to use it like:
$message .= implode(', ', $_POST['check']);
This will convert the array of selected services options into a comma delimited string.
If you are a PHP beginner, you can use PHP Forms builder that allows to create professionally looking email forms within just a few minutes. You will only need to make a PHP form by means of an intuitive interface and generate a code that can be easily copied and pasted to any web page.