hi everybody.
depending of the option choose on my (very) long form, we can have this error :
POST http://localhost/LayoutColloques/index.php/admin...BN%3Bs%3A14%3A%22%00CComponent%00_m%22%3BN%3B%7D
414 Request-URI Too Long
I can have a very long form because I have to add several times a part of my form using renderPartial and ajax.
For example, if the user have to add 3 sessions and for each session 5 activity, all the descriptions (name/date/price/ and so on…) of these sessions and activities have to be filled…
if the user choose to add 3 sessions, 3 little form are add to the main form. I made this like that :
<?php
echo $form->dropDownList($eventForm, 'nbSession',
array(
1=>'1',
2=>'2',
3=>'3',
4=>'4',
5=>'5'),
array('prompt' => 'Choisissez le nombre de session d\'ateliers',
'id' => 'nbSession',
'class'=>'eventForm',
'ajax' => array(
'type' => 'POST',
'url' => @Yii::app()->createUrl('admin/UpdateAjaxFormNbSession',array('form'=>serialize($form))), //this will show nbSession Times the form for the session. (and after, by session i show nbActivity time the form for the activity.) ...
'update' => '#session'),)
);
?>
this is one of my ajax event.
But if I’m right, the $form item is sent by using GET method. So, i’m pretty fast limited with the lenght of my url.
Is there a way to send that with POST option?
thanks.