Jquery ui modal , pass variable in a form without ajax
Hello i try to post some data in a php form with jQuery modal  box

My js

		$( "#dialog-form" ).dialog({
			autoOpen: false,
			height: 500,
			width: 650,
			modal: true,
				
			buttons: {
                Envoyer: function() {
					 $('form#leaveReq').submit();
                 
                 return true;

				},
				Ok: function() {
					$( this ).dialog( "close" );
				}
			}
		});
My Html


My html and php (  i use Code Igniter)

         <?php $attributes = array('id' => 'leaveReq');
	  echo form_open('school/parents/addevent', $attributes); ?>		
	<p class="validateTips">Veillez remplire tous les champs</p> <br/> 

	
	   <fieldset>
		<label for="name"><b>Date de l'évènement</b> </label> <br/>	
		<select id="message">
              <option>Volvo</option>
                <option>Saab</option>
                <option>Mercedes</option>
                <option>Audi</option>
               </select>     	
		<label for="email">Nature du probleme</label> <br/>
			<select>
		   <?php 
		foreach ($behaviours as $item):?>			
      <option><?=$item['name'];?></option>	
   <?php endforeach;?>
	</select>
			<br /><br />
		<label for="password">Description du problème</label> <br />
		<textarea rows="10" cols="60" id="text">
        At W3Schools you will find all the Web-building tutorials you need, from         
      </textarea>
	</fieldset>
	<INPUT type="submit" value="Inscrire" id="action">
	 <?=form_close(); ?>
</div>


and when i do 

 echo $text = $this->input->post('text');
		 echo $message = $this->input->post('message');


nothing work
Jquery ui modal , pass variable in a form without ajax
===

Hello i try to post some data in a php form with jQuery modal  box

My js

		$( "#dialog-form" ).dialog({
			autoOpen: false,
			height: 500,
			width: 650,
			modal: true,
				
			buttons: {
                Envoyer: function() {
					 $('form#leaveReq').submit();
                 
                 return true;

				},
				Ok: function() {
					$( this ).dialog( "close" );
				}
			}
		});
My Html


My html and php (  i use Code Igniter)

         <?php $attributes = array('id' => 'leaveReq');
	  echo form_open('school/parents/addevent', $attributes); ?>		
	<p class="validateTips">Veillez remplire tous les champs</p> <br/> 

	
	   <fieldset>
		<label for="name"><b>Date de l'évènement</b> </label> <br/>	
		<select id="message">
              <option>Volvo</option>
                <option>Saab</option>
                <option>Mercedes</option>
                <option>Audi</option>
               </select>     	
		<label for="email">Nature du probleme</label> <br/>
			<select>
		   <?php 
		foreach ($behaviours as $item):?>			
      <option><?=$item['name'];?></option>	
   <?php endforeach;?>
	</select>
			<br /><br />
		<label for="password">Description du problème</label> <br />
		<textarea rows="10" cols="60" id="text">
        At W3Schools you will find all the Web-building tutorials you need, from         
      </textarea>
	</fieldset>
	<INPUT type="submit" value="Inscrire" id="action">
	 <?=form_close(); ?>
</div>


and when i do 

 echo $text = $this->input->post('text');
		 echo $message = $this->input->post('message');


nothing work