I am using a script that has foreach loop and the amount of continuous check box as set in admin Shows Magento area
I think there are many checkboxes that are facing the problem, but only the checkbox that is selected near the top is the value that is sent along with the form. I need all the checkbox values that are sent to me.
To get the check box values, I have this in my mail script And this is done using foreign code to show the correct amount of check box with the code given below. All your checkboxes have the same name, so change the code to use only one of your $ check = $ _POST ['check'];
& lt ;? Php $ SKU = "1282670_01"; $ Product = Dana :: MillModel ('catalog / product') - & gt; LoadBetaTitVit ('scooo', $ SKU); If ($ product-> getTypeId () == "configurable") {$ childs = $ product- & gt; GetTypeInstance () - & gt; Joins Products (); } $ I = 0; Foreign ($ child $ $ child) {? & Gt; & Lt ;? Php $ color_name = $ child- & gt; GetAttributeText ('real_colour'); ? & Gt; & Lt; Li class = "noticeable focus" id = "fo143li2" & gt; & Lt; Fieldset & gt; & Lt; Div & gt; & Lt; Period & gt; & Lt; Img width = "35" height = "35" src = "& lt ;? php echo table :: millbusiness url (Mage_Core_Model_Store :: URL_TYPE_MEDIA). 'Catalog / Product'. $ Child- & gt; getSwatch ()? & Gt ; " & Gt; & Lt; Input type = "checkbox" style = "margin-top: -10px;" Onchange = "handleInput (this);" Tabindex = "5" value = "& lt ;? php $ color $ name? & Gt; class =" field checkbox "name =" check "id ="
$ _ POST array unique names or use an array form ie
name = "Check []"
No comments:
Post a Comment