To make an WordPress widget I created a select box which gets options generated dynamically from $post object. The select box's name is also generated by dynamically. Here is the code
<select class="widefat" name="<?php echo $this->get_field_name( 'employee' );?>" id="<?php echo $this->get_field_id( 'employee' ); ?>">
Results this :
<select class="widefat" name="widget-employee[13][department]" id="widget-employee-13-department">
To check the value of the select box I need to pass it to $_POST Array.
How do I pass the select box's value to $_POST array ?
Thanks in advance.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire