Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP Form to Email Array
    primarykey
    data
    text
    <p>Having some trouble with this. I have an array that is inputting my form data ro email but trying to get a way to combine some check boxes. For "Grips" there are a few check boxes that I would like listed if checked. Below is the pieces of code (this is just the relevant chunk of the PHP, the form mailer works great just cant get all the check boxs to post):</p> <pre><code>$grind = join(", ", $_REQUEST["grind"]); $fields = array(); $fields{"AccountName"} = "Accounts's Name: "; $fields{"FitterName"} = "Fitter's Name: "; $fields{"CustomerCat"} = "__CUSTOMER INFO___"; $fields{"CustomerName"} = "Customer's Name: "; $fields{"CustomerPhone"} = "Customer's Phone: "; $fields{"CustomerAddress"} = "Customer's Address: "; $fields{"CustomerCity"} = "Customer's City: "; $fields{"CustomerState"} = "Customer's State; "; $fields{"CustomerZip"} = "Customer's Zip: "; $fields{"WedgeType"} = "Wedge Loft: "; $fields{"$grind"} = "Wedge Grind: " ; $fields{"WedgesShaft"} = "Wedge Shaft: "; </code></pre> <p>Here is the HTML</p> <pre><code>&lt;input type="checkbox" name="grind[V-Grind]" class="grinds" value="V-Grind"&gt;V-Grind &lt;input type="checkbox" name="grind[Tour Grind]" class="grinds" value="Tour Grind"&gt;Tour Grind &lt;input type="checkbox" name="grind[Heal Grind]" class="grinds" value="Heal Grind"&gt;Heal Grind &lt;input type="checkbox" name="grind[No Grind]" class="grinds"value="No Grind"&gt;No Grind </code></pre> <p>I know that this <code>$fields{"$grind"} = "Wedge Grind: " ;</code> is not the right way to pass the array at top from $grind but not sure what would be the proper way since everything else works great.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload