Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1.           if($fieldName == 'custom_startselect'){
  2.                 if (!empty($_POST['custom_startselect']['custom_hourselect'])) {
  3.                     Do stuff
  4.             // if this is just an "else" I got an unexpected "elseif" on the next elseif line        
  5.                        }elseif (empty($_POST['custom_startselect']['custom_hourselect']))  {
  6.                         delete_post_meta($post_id, $fieldName);
  7.                }    
  8.                    
  9.             //check for another known grouped input field        
  10.             }elseif ($fieldName == 'custom_endselect') {
  11.                            Do Stuff
  12.            
  13.               //check to see if there is a value posted for this field
  14.               }elseif(isset($_POST[$field['id']])){
  15.             Do stuff
  16.          }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement