WordPress.org

Forums

Cimy User Extra Fields
[resolved] User fields clear if an incomplete form is submitted (2 posts)

  1. richleppard2
    Member
    Posted 2 years ago #

    If I create a field which must be filled out (one which cannot be left blank) and someone clicks 'update' without filling it out it gives them a warning, obviously. However it also clears everything they've put in all other fields. Any way of stopping this?

    regards

    http://wordpress.org/extend/plugins/cimy-user-extra-fields/

  2. mgelves
    Member
    Posted 2 years ago #

    You must write the value of the $_POST. Example:

    <input type="text" name="txtMyInput" value="<?php echo $_POST['txtMyInput']; ?>" />

    If $_POST is empty, nothing will apear in the input, but if you had an error in your form you will recover the data.

    Hope this helps!
    Mauricio

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Cimy User Extra Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic