[eluser]jtingato[/eluser]
I have never seen this before and it has me perplexed.
I have taken over a previously designed site ( I always hate that) which was
created using CodeIgniter. I have not used CodeIgniter before, so I am a noob.
Does CI somehow filter the POST array?
There is a form on a PHP page with a JS script for creating a sketch of some
clothing. The form accepts several choices from combo boxes with an "order" and Save function. The action of the form is to a function "sketch/doSave", which need to determine whether Save or order was clicked. The form is as follows below:
NOTE: I have redirected the form action to a php file that just uses print_r to
print the POST array. Everything shows up in the array except the submit
buttons.
************Print_r results***********
Array
(
[base] => UT300
[baseColor] => Black
[baseFabric] => L0000
[neck] => N100
[sleeve] =>
[sleeveColor] => None Available
[sleeveFabric] => None Available
[sleeveInsertColor] => None Available
[sleeveInsertFabric] => None Available
[lowertorso] =>
[lowertorsoColor] => None Available
[lowertorsoFabric] => None Available
[lowertorsoInsertColor] => None Available
[lowertorsoInsertFabric] => None Available
)
**********************************************
Where is the [save]= "Save" ?
If I copy just the button portion of the form to another php file and run it
it shows up in the POST array.
Any ideas? Please.
****************** FORM CODE*********************************
<form action="<?=site_url('postshow.php')?>" id="sketchForm" method="post">
<fieldset>
<legend>Sketch Form</legend>
<!------------------------------------------------------------------------------------------------>
<!-- Start Button Box -->
<div class="buttonBox">
<input name="save" type="submit" id="save" accesskey="s" value="Save"> .
<input name="order" type="submit" id="order" accesskey="o" value="Order"> .
<input name="reset" type="button" id="reset" accesskey="r" value="Reset">
</div>
<!-- End Button Box -->
<!------------------------------------------------------------------------------------------------>
<!-- Start Details Box -->
<div id="details">
<div id="baseBox">
<!-- Create and fill combo boxes-->
<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 -->
<!-- Create and fill more combo boxes --> ....