title: How to add message after submitting form? PHP, Wordpress
body: <p>I trying to make a feature, where the user recieves a message saying "Your changes have been saved" after the user has pressed "save changes". When the form is being submittet the page is just refreshed and not redirected to any other page.</p>
  
  <p>I have tried several things but nothing seems to work. I am good at HTML but not PHP. I would love if any of you could help me out!</p>
  
  <p>My code for my profile template is the folowing:</p>
  
  <pre><code>&lt;div class="user-image"&gt;            
  &lt;div class="bordered-image thick-border"&gt;
      &lt;?php echo get_avatar(ThemexUser::$data['user']['ID'], 200); ?&gt;
  &lt;/div&gt;
  &lt;div class="user-image-uploader"&gt;
      &lt;form action="&lt;?php echo themex_url(); ?&gt;" enctype="multipart/form-data" method="POST"&gt;
          &lt;label for="avatar" class="button"&gt;&lt;span class="button-icon upload"&gt;&lt;/span&gt;&lt;?php _e('Skift billede','academy'); ?&gt;&lt;/label&gt;
          &lt;input type="file" class="shifted" id="avatar" name="avatar" /&gt;
          &lt;input type="hidden" name="user_action" value="update_avatar" /&gt;
          &lt;input type="hidden" name="nonce" value="&lt;?php echo wp_create_nonce(THEMEX_PREFIX.'nonce'); ?&gt;" /&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="user-description"&gt;
  
  &lt;form action="&lt;?php echo themex_url(); ?&gt;" class="formatted-form" method="POST"&gt;
      &lt;div class="message"&gt;
          &lt;?php ThemexInterface::renderMessages(); ?&gt;
      &lt;/div&gt;
      &lt;div class="sixcol column"&gt;
          &lt;div class="field-wrapper"&gt;
              &lt;input type="text" name="first_name" size="30" value="&lt;?php echo ThemexUser::$data['user']['profile']['first_name']; ?&gt;" placeholder="&lt;?php _e('Fornavn','academy'); ?&gt;" /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="sixcol column last"&gt;
          &lt;div class="field-wrapper"&gt;
              &lt;input type="text" name="last_name" size="30" value="&lt;?php echo ThemexUser::$data['user']['profile']['last_name']; ?&gt;" placeholder="&lt;?php _e('Efternavn','academy'); ?&gt;" /&gt;
          &lt;/div&gt;
      &lt;/div&gt;              
      &lt;div class="clear"&gt;&lt;/div&gt;
  
      &lt;!-- ADRESSE --&gt;
      &lt;?php if(!ThemexCore::checkOption('profile_signature')) { ?&gt;
      &lt;div class="field-wrapper"&gt;
          &lt;input type="text" name="signature" value="&lt;?php echo ThemexUser::$data['user']['profile']['signature']; ?&gt;" placeholder="&lt;?php _e('Adresse','academy'); ?&gt;" /&gt;
      &lt;/div&gt;
      &lt;?php } ?&gt;
  
      &lt;div class="user-fields"&gt;
          &lt;?php ThemexForm::renderData('profile', array(), ThemexUser::$data['user']['profile']); ?&gt;
      &lt;/div&gt;
  
      &lt;?php } ?&gt;
  
      &lt;a href="#" class="button submit-button"&gt;&lt;span class="button-icon save"&gt;    &lt;/span&gt;&lt;?php _e('Gem ændringer','academy'); ?&gt;&lt;/a&gt;
      &lt;input type="hidden" name="user_action" value="update_profile" /&gt;
      &lt;input type="hidden" name="nonce" value="&lt;?php echo wp_create_nonce(THEMEX_PREFIX.'nonce'); ?&gt;" /&gt;
  &lt;/form&gt;
  
  &lt;/div&gt;
  </code></pre>