Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6470873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:09:37+00:00 2026-05-25T06:09:37+00:00

I have gone through a bunch of question posts, and found one person with

  • 0

I have gone through a bunch of question posts, and found one person with the same issue as me, but the answer he/she received I did not find to help at all.

I created a form which uses checkboxes. Once submitted my entire form is processed beautifully and I do receive the mail, but when it comes to the checkboxes it only displays “Array” in the email in stead of the checked checkbox values….

What am I doing wrong?

HTML Form Code: as requested, the full form

                                        <form name="busquoteform" method="post" action="FormToEmail.php">
            <fieldset>
                <legend>Contact Information</legend>
                    <table width="100%">
                        <tr>
                            <td width="40%">
                                <label><strong>Name *:</strong></label><br/>
                                <input name="name" type="text" id="name" value=""  />
                            </td>
                            <td width="10%">&nbsp;</td>
                            <td width="40%">
                                <label><strong>Lastname *:</strong></label><br />
                                <input name="lname" type="text" id="lname" value=""  />
                            </td>
                        </tr>
                     </table>
                     <table width="100%">
                        <tr>
                            <td width="25%">
                                <label><strong>Contact Number:</strong></label><br/>
                                <input name="contactno" type="text" id="contactno" value=""  />
                            </td>
                            <td width="25%">
                                <label><strong>Mobile Number * </strong></label><br/>
                                <input name="mobno" type="text" id="mobno" value=""  />
                            </td>
                            <td width="40%">
                                <label><strong>Email *:</strong></label><br/>
                                <input name="email" type="text" id="email" value=""  />
                            </td>
                        </tr>
                    </table>
                </fieldset>
                    <br/>
                <fieldset>
                <legend>Company Information</legend>
                    <table width="100%">
                        <tr>
                            <td width="40%">
                                <label><strong>Company Name *:</strong></label><br/>
                                <input name="compname" type="text" id="compname" value=""  />
                            </td>
                            <td width="10%">
                                <label><strong>Position Held *:</strong></label><br />
                                <input name="position" type="text" id="position" value=""  />
                            </td>
                            <td width="40%">
                            </td>
                        </tr>
                     </table>
                     <table width="100%">
                        <tr>
                            <td width="16%">
                                <label><strong>Company Address*:</strong></label><br/><br/><br/><br/>
                            </td>
                            <td width="2%">
                            </td>
                            <td>
                                <input name="street" type="text" id="street" value="Street" size="30"  /><br/>
                                <input name="suburb" type="text" id="suburb" value="Suburb" size="30" /><br/>
                                <input name="city" type="text" id="city" value="City" size="30" /><br/>
                                <input name="code" type="text" id="code" value="Postal Code" size="10"  /><br/>
                            </td>
                        </tr>
                      </table>
            </fieldset>
                <br/>
            <fieldset>
                <legend>Project Information</legend>
                    <table>
                        <tr>
                            <td>
                                <label><strong>Service Type/s*:</strong></label><br/>
                                Please select all applicable types.
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Graphic Design&nbsp;<input name="serviceType[]" id="design" type="checkbox" value="Graphic Design" />&nbsp;&nbsp;&nbsp;&nbsp;
                                Web Development&nbsp;<input name="serviceType[]" id="webdev" type="checkbox" value="Web Development" />&nbsp;&nbsp;&nbsp;&nbsp;
                                Application Development&nbsp;<input name="serviceType[]" id="appdev" type="checkbox" value="App Development" />&nbsp;&nbsp;&nbsp;&nbsp;
                                Embroidery&nbsp;<input name="serviceType[]" id="embroidery" type="checkbox" value="Embroidery" />&nbsp;&nbsp;&nbsp;&nbsp;
                                Engraving&nbsp;<input name="serviceType[]" id="engrave" type="checkbox" value="Engraving" /><br/><br/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label><strong>Please supply a detailed description of your requirements*:</strong></label><br/>
                                <textarea name="projectDes" cols="60" rows="10" id="projectDes"></textarea>
                                <br/><br/>
                              <input name="quoteBus" type="submit" class="ZD-button" value="Send Request"/>
                            </td>
                        </tr>
                    </table>
            </fieldset>
         </form>

and the php processing code:

                    $mailBody = "Name : ".$_REQUEST['name']. "&nbsp; ".$_REQUEST['lname'].
                                " <br/>Email : ".$_REQUEST['email'].
                                " <br/>Contact No : ".$_REQUEST['contactno']. "&nbsp;&nbsp;Mobile No: ".$_REQUEST['mobno']. 
                                "<br/><br/>Company Name : ".$_REQUEST['compname']. 
                                " <br/>Postion Held : ".$_REQUEST['position']. 
                                "<br/><br/>Company Address : <br/>".$_REQUEST['street']."<br/>".$_REQUEST['suburb']."<br/>".$_REQUEST['city']."<br/>".$_REQUEST['code'].
                                "<br/><br/> Service Type/s :" .(is_array($_REQUEST['serviceType'])?implode("\n", $_REQUEST['serviceType']):$_REQUEST['serviceType'])."<br />".
                                "<br/><br/>Details of Project : ".$_REQUEST['projectDes'];

I’ve also tried:
“

Service Type/s :” .$serviceType = $_POST[“serviceType”];$serviceType = implode(‘, ‘, $serviceType);”
“.

and also does not seem to work…

I got this code from a project my hubby did a while back – but he is not a php developer, he’s into Java…

Help Please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:09:38+00:00Added an answer on May 25, 2026 at 6:09 am

    Update

    I just tried your code and it works fine, and results what you want. So can you please show your <form> tag.

    Code that I tested

    <?php
    
    echo (is_array($_REQUEST['serviceType']) ? implode("\n", $_REQUEST['serviceType']) : $_REQUEST['serviceType']);
    
    ?>
    
    
    <form action="" method="post">
    
        Graphic Design&nbsp;<input name="serviceType[]" id="design" type="checkbox" value="Graphic Design" />&nbsp;&nbsp;&nbsp;&nbsp;
        Web Development&nbsp;<input name="serviceType[]" id="webdev" type="checkbox" value="Web Development" />&nbsp;&nbsp;&nbsp;&nbsp;
        Application Development&nbsp;<input name="serviceType[]" id="appdev" type="checkbox" value="App Development" />&nbsp;&nbsp;&nbsp;&nbsp;
        Embroidery&nbsp;<input name="serviceType[]" id="embroidery" type="checkbox" value="Embroidery" />&nbsp;&nbsp;&nbsp;&nbsp;
        Engraving&nbsp;<input name="serviceType[]" id="engrave" type="checkbox" value="Engraving" /><br/><br/>
    
        <input type="submit" />
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have gone through many posts on SO regarding this issue: Tried everything in
I have gone through this and this , but the question I am asking
I have gone through most similar JQuery posts relating to hiding parent containers but
I have gone through certain related answers but dont seem to get correct answer
I have gone through these links.. link1 and link2 But these posts are not
I have gone through different examples but i unable to find the exact answer
Have gone through hibernate api specification on FlushMode but didn't get the exact difference.
I have gone through Google and Stack Overflow search, but nowhere I was able
I have gone through a couple of similar questions but could reach a definite
I have gone through following question. Convert NSString to NSDictionary It is something different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.