samedi 4 juillet 2015

Value fields are not being updated in Sql

I am working on my wordpress theme and here is the code in a php file that gives a user a field to enter his website:

<div class="row">
<div class="large-12 columns form-field">
<label><?php _e('Website', APP_TD) ?></label>
<input type="text" name="url" class="text regular-text" id="url" value="<?   php echo esc_url( $current_user->user_url ); ?>" maxlength="100" />
</div>

Here is what the form looks like: After I duplicated the above code, I could see the new field as website2

Then, I created a duplicate field in Mysql as shown in the picture.Created field url2 just like url Also, this is what the php file looks like now: php editenter image description here

Issue: I am able to update url2 in database and that value gets filled up in the front end user profile but when i try to populate website2 field from the front end, the value is not being stored. The value field gets empty as soon as i refresh and sql field is blank as well.

What am i missing?

Aucun commentaire:

Enregistrer un commentaire