I have form that i'm using to update user profile from front end and i have country select.

```
<form method="post" id="adduser" action="<?php the_permalink(); ?>">

    <select id="te" name="usercountry_id">
        <option value="1">Country 1</option>
        <option value="2">Country 2</option>
    </select>

    <p class="form-submit">
    <?php echo $referer; ?>
    <input name="updateuser" type="submit" id="updateuser" class="submit button" value="<?php _e('Update', 'profile'); ?>" />
    <?php wp_nonce_field( 'update-user' ) ?>
    <input name="action" type="hidden" id="action" value="update-user" />
    </p><!-- .form-submit -->
</form><!-- #adduser -->

```

When i try to update

```
$usercountry= $_POST['usercountry_id'];
update_user_meta($id, 'usercountry_id', $usercountry);

```

my `$_POST['usercountry_id']` is empty. Also i tried using jQuery to pass variable to php but with no success:

```
 jQuery("#te").click(function() {
    var b = jQuery('#te :selected').text();

    var ajaxurl ='<?php echo get_bloginfo("url"); ?>/wp-admin/admin-ajax.php';
       jQuery.ajax({
        type: 'POST',
        url: ajaxurl,
        data: {"variable": b },

    });});

```

`$_POST['variable']` is again empty.