Part of the EllisLab Network
   
 
POST array missing submit button
Posted: 21 November 2008 09:34 PM   [ Ignore ]  
Summer Student
Total Posts:  10
Joined  11-02-2008

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

<!-- Start Button Box -->

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

                        <!--
End Button Box -->

<!------------------------------------------------------------------------------------------------>                            

                        <!--
Start Details Box -->

                        <
div id="details">                        

                            <!--
Start Base Box -->

                            <
div id="baseBox">                            

                                <!--
Start Base Combo -->

                                <
div id="baseCombo">

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

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

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

                                        
<?=$baseOptions?>

                                    
</select>

                                </
div>

                                <!--
End Base Combo -->

                                

                                <!--
Start Base Options -->

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

                                

                                    <!--
Start Base Color Combo -->

                                    <
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>

                                    <!--
End Base Color Combo -->
Profile
 
 
Posted: 12 December 2008 05:52 AM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  4
Joined  11-29-2006

I noticed that as well. With jQuery included, the submit button is missing from the $_POST array. Strange.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 77574 Total Logged-in Users: 24
Total Topics: 101562 Total Anonymous Users: 1
Total Replies: 544412 Total Guests: 198
Total Posts: 645974    
Members ( View Memberlist )