CodeIgniter Forums
POST array missing submit button - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: POST array missing submit button (/showthread.php?tid=13428)



POST array missing submit button - El Forum - 11-21-2008

[eluser]jtingato[/eluser]
Very weird.

My form has two submit buttons, "order" and "save" plus 12 combo boxes. Upon submition, I need to know which button was chosen. I have redirected the forms action to a simple php page with print_r($_POST), so I can see what is in the array. Everything is listed except the submit buttons.

Does anyone have any idea why this would be happening? I briefly looked thru the Input class to see if anything stood out. In Input class, var xxs_clean=FALSE. I was thinking CI was somehow clensing the POST.

Also, jQuery.js is installed on this site. I know that's not relative to this forum, but when I comment out the reference to the JS file, the submit button show up in print_r().

Any help would be appreciated, even if you just tell me its not CI... go to a jQuery forum.

Thanks in advance.

Below I have included the first few items of the form


Code:
<!-- Start Button Box -->

                            <div class="buttonBox">
    
                                &lt;input name="save" type="submit" id="save" accesskey="s" value="Save" class = "required" /&gt;
                                •
                                &lt;input name="order" type="submit" id="order" accesskey="o" value="Order" class = "required" /&gt;
                                •
                                &lt;input name="reset" type="button" id="reset" accesskey="r" value="Reset"&gt;
    
                            </div>

                        &lt;!-- End Button Box --&gt;

&lt;!------------------------------------------------------------------------------------------------&gt;                            

                        &lt;!-- Start Details Box --&gt;

                        <div id="details">                        

                            &lt;!-- Start Base Box --&gt;

                            <div id="baseBox">                            

                                &lt;!-- Start Base Combo --&gt;

                                <div id="baseCombo">

                                    <label for="base">Base</label>

                                    <select name="base" id="base" class="required main">

                                        <option value="none" selected>-- Select a Base --</option>

                                        &lt;?=$baseOptions?&gt;

                                    </select>

                                </div>

                                &lt;!-- End Base Combo --&gt;

                                

                                &lt;!-- Start Base Options --&gt;

                                <div id="baseOptions" class="options">

                                

                                    &lt;!-- Start Base Color Combo --&gt;

                                    <div id="baseColorCombo">

                                        <label for="baseColor" class="sub">Color</label>

                                        <select name="baseColor" id="baseColor" class="required">

                                                <option value="none">Choose a Base</option>

                                        </select>

                                    </div>

                                    &lt;!-- End Base Color Combo --&gt;



POST array missing submit button - El Forum - 12-12-2008

[eluser]Brian Nowell[/eluser]
I noticed that as well. With jQuery included, the submit button is missing from the $_POST array. Strange.