<?php
echo $ajax-
>form('editTest','',array('name'=>'editForm','update'=>'editBar')) ;
?>
<INPUT type="hidden" name="id" value="1">
<INPUT type="submit" name="edit" Value="Edit" >
<INPUT type="submit" name="remove" Value="Remove">
</form>
When I submit this form using either Edit or Remove Button ,I get the
output of $this->params['form'] as
Array
(
[id] => 1
[edit] => Edit
[remove] => Remove
)
Where as ,while using html form tag directly and normal form
submission ,I get the output as either
Array
(
[id] => 1
[remove] => Remove
)
OR
Array
(
[id] => 1
[edit] => Edit)
}
Could any one please tell me how to get the second type of
output(Obviously my aim is to identify the sumbit button) ,while using
ajax helper's form ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---